socsvn commit: r289914 - soc2013/def/crashdump-head/sys/kern
def at FreeBSD.org
def at FreeBSD.org
Wed Aug 19 09:26:38 UTC 2015
Author: def
Date: Wed Aug 19 09:26:37 2015
New Revision: 289914
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=289914
Log:
Don't allow to write blocks in the reverse order.
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 09:24:34 2015 (r289913)
+++ soc2013/def/crashdump-head/sys/kern/kern_shutdown.c Wed Aug 19 09:26:37 2015 (r289914)
@@ -1030,8 +1030,7 @@
/* Data have to be written continuously. */
if (kdc->kdc_lastoffset != 0 &&
- kdc->kdc_lastoffset + kdc->kdc_lastlength != offset &&
- offset + length != kdc->kdc_lastoffset) {
+ kdc->kdc_lastoffset + kdc->kdc_lastlength != offset) {
return (EINVAL);
}
More information about the svn-soc-all
mailing list