freevxfs: possible null pointer dereference fix
authorDmitriy Monakhov <dmonakhov@sw.ru>
Tue, 8 May 2007 07:24:34 +0000 (00:24 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:14:59 +0000 (11:14 -0700)
commit82f703bb8cb2732b4437a9f555a1be564e9e71c2
tree14b96636cc447ff00a5c3da0aa8d114f982b6cea
parent1368c4f2482c9e06bcb297217433818b171cc9e3
freevxfs: possible null pointer dereference fix

sb_read may return NULL, so let's explicitly check it.

Signed-off-by: Dmitriy Monakhov <dmonakhov@openvz.org>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/freevxfs/vxfs_bmap.c
fs/freevxfs/vxfs_inode.c