]> git.baikalelectronics.ru Git - kernel.git/commit
nobh: nobh_write_end fix
authorNick Piggin <npiggin@suse.de>
Sun, 21 Oct 2007 04:57:41 +0000 (06:57 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 21 Oct 2007 15:54:05 +0000 (08:54 -0700)
commit98242286ecef943aa8a534ded22e0304ad44cc41
tree697e9db6db5675c46d559d8982e34a1f8df4f3d1
parenta3e01cb9c520b1791d28c9f9fb8941c2950247af
nobh: nobh_write_end fix

This path mustn't have been tested :( I did attempt to exercise it
by injecting failures here, but I suspect PageMappedToDisk may have
been getting in the way. Will need more of a look, although I think
nobh mode is OK for an -rc1 (it shouldn't eat anyone's data).

Commit 6ac31bbc471e48d4549a25f86762c438f9809d22 ("fs: restore nobh")
introcduced a NULL deref.  Spotted by the Coverity checker.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Badari Pulavarty <pbadari@us.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/buffer.c