zero_to_err_ptr: calling PTR_ERR(NULL) is a probably a bug
commit1c0fdef9f3da23f458a43688478b96b8d0e5aff9
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 20 Aug 2015 14:22:16 +0000 (20 17:22 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 20 Aug 2015 14:22:16 +0000 (20 17:22 +0300)
tree8bc99a6f98d2948d7be520a151e5e45961bfc259
parentba3e6744c6b185db69711c567a34ce464e79efe2
zero_to_err_ptr: calling PTR_ERR(NULL) is a probably a bug

This test is pretty narrow in how it's written.  If you do PTR_ERR(foo) and
"foo" can be a an ERR_PTR or NULL then it doesn't complain.  That means you
need the cross function database for this to really be useful.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_list.h
check_zero_to_err_ptr.c [new file with mode: 0644]