From: Wei Yongjun Date: Mon, 3 Jun 2013 02:08:13 +0000 (+0800) Subject: staging/lustre: fix return value check in libcfs_sock_ioctl() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~325 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3c1afd1fa366ef733a9f16c493a03396d7e4ab5;p=pandora-kernel.git staging/lustre: fix return value check in libcfs_sock_ioctl() In case of error, the function sock_alloc_file() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed