pnfsblock: fix NULL pointer dereference
authorPeng Tao <bergwolf@gmail.com>
Fri, 23 Sep 2011 01:50:16 +0000 (21:50 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:42:59 +0000 (09:42 -0800)
commite799f152fb72a820df19d11117f18d614f838054
treec801cea91d77b9a718aefbc2fd113f15115a4282
parent01e4e1d23615e3b970480c63f7d9b0eeb4daa276
pnfsblock: fix NULL pointer dereference

commit e6d05a757c314ad88d0649d3835a8a1daa964236 upstream.

bl_add_page_to_bio returns error pointer. bio should be reset to
NULL in failure cases as the out path always calls bl_submit_bio.

Signed-off-by: Peng Tao <peng_tao@emc.com>
Signed-off-by: Jim Rees <rees@umich.edu>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/blocklayout/blocklayout.c