pnfsblock: fix return code confusion
authorJim Rees <rees@umich.edu>
Fri, 23 Sep 2011 01:50:08 +0000 (21:50 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:42:55 +0000 (09:42 -0800)
commit029bc659415f3835a5ec6485b40cc2e53283c0dc
tree007e8b5dcf83936b1bf84dc7e179deaa25758645
parent2a8796e3653ee5a99c16e029b22ec78b14818286
pnfsblock: fix return code confusion

commit 516f2e24faa7548a61d9ba790958528469c2e284 upstream.

Always return PTR_ERR, not NULL, from nfs4_blk_get_deviceinfo and
nfs4_blk_decode_device.

Check for IS_ERR, not NULL, in bl_set_layoutdriver when calling
nfs4_blk_get_deviceinfo.

Signed-off-by: Jim Rees <rees@umich.edu>
Signed-off-by: Benny Halevy <bhalevy@tonian.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/blocklayout/blocklayout.c
fs/nfs/blocklayout/blocklayoutdev.c