]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pnfsblock: fix NULL pointer dereference
authorPeng Tao <bergwolf@gmail.com>
Fri, 23 Sep 2011 01:50:16 +0000 (21:50 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 18 Oct 2011 16:08:14 +0000 (09:08 -0700)
commite6d05a757c314ad88d0649d3835a8a1daa964236
treef900bf7912f5eb2546769f19fdfacccbc36e6b59
parent9b7eecdcfeb943f130d86bbc249fde4994b6fe30
pnfsblock: fix NULL pointer dereference

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>
Cc: stable@kernel.org [3.0]
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/blocklayout/blocklayout.c