]> err.no Git - linux-2.6/commit
[PATCH] __bread oops fix
authorAndrew Morton <akpm@osdl.org>
Sun, 30 Oct 2005 23:03:15 +0000 (15:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:27 +0000 (17:37 -0800)
commita3e713b5fdd0e54c2e3c8909ccde2a98839e3a52
treec42c037f239de130f2efe30777df9688bf4dd022
parent727a53bd535fe3bde644ac346db27456ad964083
[PATCH] __bread oops fix

If a filesystem passes an idiotic blocksize into bread(), __getblk_slow() will
warn and will return NULL.  We have a report (from Hubert Tonneau
<hubert.tonneau@fullpliant.org>) of isofs_fill_super() doing this (passing in
a silly block size) against an unplugged CDROM drive.

But a couple of __getblk_slow() callers forgot to check for the NULL bh, hence
oops.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/buffer.c