check_kernel: preserve ERR_PTR values passed to IS_ERR_OR_NULL()
commit424d9328810ff71340ebaf2e2833b2feda40a23b
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Mar 2013 10:03:51 +0000 (8 13:03 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Mar 2013 10:03:51 +0000 (8 13:03 +0300)
tree40f0f6ad522b7f012f334f9e6bab4ced8b58ce82
parent9cd1ccc6530a6ae9b7f8712a6bfb42de739e5686
check_kernel: preserve ERR_PTR values passed to IS_ERR_OR_NULL()

When we checked if the pointer was IS_ERR_OR_NULL() then it set one side
to good but left the other side as unknown.  Often the specific error codes
are known and we should preserve them.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_kernel.c