ext2: Check return value from ext2_get_group_desc()
authorJan Kara <jack@suse.cz>
Tue, 9 Aug 2016 08:07:52 +0000 (10:07 +0200)
committerJan Kara <jack@suse.cz>
Tue, 9 Aug 2016 08:12:28 +0000 (10:12 +0200)
commitf7a1c358e51c21b80336413fb824e1a82df648b9
treef0c30066ab4ac93472b3d24324900f95022bb966
parent81abf2525827b29839a78fd55ab0699f033c41a5
ext2: Check return value from ext2_get_group_desc()

ext2_get_group_desc() can return NULL if there is some error. This
usually means there is some programming error in the ext2 driver itself
but let's be defensive and handle that case.

Coverity-id: 115628
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/ialloc.c