• Nick Piggin's avatar
    nobh: nobh_write_end fix · efdc3131
    Nick Piggin authored
    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 03158cd7 ("fs: restore nobh")
    introcduced a NULL deref.  Spotted by the Coverity checker.
    Signed-off-by: default avatarNick Piggin <npiggin@suse.de>
    Cc: Badari Pulavarty <pbadari@us.ibm.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    efdc3131
buffer.c 85.5 KB