udf: possible null pointer dereference while load_partition
authorDmitriy Monakhov <dmonakhov@openvz.org>
Tue, 8 May 2007 07:35:22 +0000 (00:35 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:22 +0000 (11:15 -0700)
commit951744fea0aea9adbd7c8cacb3605f2d69a66f96
treec46aec13c4a5f3924bc5a73bced68269f275ff2b
parent31170b6ad4ebe6c43c1cc3b8112274cf59474de0
udf: possible null pointer dereference while load_partition

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

Signed-off-by: Dmitriy Monakhov <dmonakhov@openvz.org>
Cc: Jan Kara <jack@ucw.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/udf/super.c