]> err.no Git - linux-2.6/commit
reiserfs: possible null pointer dereference during resize
authorDmitriy Monakhov <dmonakhov@sw.ru>
Tue, 8 May 2007 07:24:37 +0000 (00:24 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:14:59 +0000 (11:14 -0700)
commit2d3466a348a61c4d7f958ce80020eba17c09d7f7
treeeda69787ec28632b162638055b60dc8371f6432b
parent82f703bb8cb2732b4437a9f555a1be564e9e71c2
reiserfs: possible null pointer dereference during resize

sb_read may return NULL, let's explicitly check it.  If so free new bitmap
blocks array, after this we may safely exit as it done above during bitmap
allocation.

Signed-off-by: Dmitriy Monakhov <dmonakhov@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/reiserfs/resize.c