PTR_ERR(ERR_PTR(-42)) is non zero.
commitcb9427834f0d098cd1e41db697cfccf150569670
authorDan Carpenter <error27@gmail.com>
Mon, 8 Jun 2009 07:44:15 +0000 (8 10:44 +0300)
committerDan Carpenter <error27@gmail.com>
Mon, 8 Jun 2009 07:44:15 +0000 (8 10:44 +0300)
tree49eff8789ba7ad0779af6457b935f62784c1e024
parentbb81575c92223409f1c50bb94181568d2116ad06
PTR_ERR(ERR_PTR(-42)) is non zero.

There are 3 places where they say something like:
    error = PTR_ERR(foo);
...
if (error)
    return error;

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_err_ptr_deref.c