md: check return code of read_sb_page
authorVasiliy Kulikov <segooon@gmail.com>
Fri, 1 Oct 2010 21:18:12 +0000 (14:18 -0700)
committerNeilBrown <neilb@suse.de>
Thu, 7 Oct 2010 01:02:50 +0000 (12:02 +1100)
commit5c04f5512f8134c75cd36e5b0354e10e330f4e6e
tree7733d3a123e8be8782d345e6310a6c208bfc6606
parentdb8d9d3591f77cc6b66248b2cdfa1c43deee5ec9
md: check return code of read_sb_page

Function read_sb_page may return ERR_PTR(...). Check for it.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/bitmap.c