socsvn commit: r289923 - soc2013/def/crashdump-head/sys/kern
def at FreeBSD.org
def at FreeBSD.org
Wed Aug 19 14:54:56 UTC 2015
Author: def
Date: Wed Aug 19 14:54:54 2015
New Revision: 289923
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=289923
Log:
Support trivial case when dump_write is called to signal completion.
Modified:
soc2013/def/crashdump-head/sys/kern/kern_shutdown.c
Modified: soc2013/def/crashdump-head/sys/kern/kern_shutdown.c
==============================================================================
--- soc2013/def/crashdump-head/sys/kern/kern_shutdown.c Wed Aug 19 14:29:16 2015 (r289922)
+++ soc2013/def/crashdump-head/sys/kern/kern_shutdown.c Wed Aug 19 14:54:54 2015 (r289923)
@@ -1023,6 +1023,12 @@
if (error != 0)
return (error);
+ /* Signal completion. */
+ if (virtual == NULL && physical == 0 && offset == 0 && length == 0) {
+ return (di->dumper(di->priv, virtual, physical, offset,
+ length));
+ }
+
/* Data have to be aligned to block size. */
if ((length % KERNELDUMP_BLOCK_SIZE) != 0)
return (EINVAL);
More information about the svn-soc-all
mailing list