Date: Wed, 19 Aug 2015 09:26:37 GMT From: def@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r289914 - soc2013/def/crashdump-head/sys/kern Message-ID: <201508190926.t7J9QbXG000418@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508190926.t7J9QbXG000418>