From: Jim Rees Date: Fri, 23 Sep 2011 01:50:08 +0000 (-0400) Subject: pnfsblock: fix return code confusion X-Git-Tag: v3.2-rc1~176^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=516f2e24faa7548a61d9ba790958528469c2e284;p=pandora-kernel.git pnfsblock: fix return code confusion 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 Signed-off-by: Benny Halevy Cc: stable@kernel.org [3.0] Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed