check_kernel: ERR_PTR() returns non-NULL (mostly)
commit4fc061ed7a864acce39461173eee3652d89c7d60
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 May 2012 12:23:45 +0000 (15 15:23 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 May 2012 12:23:45 +0000 (15 15:23 +0300)
tree0dbe7f62bcbf210f3c2ea34ef754dc51278b79dd
parent32f33bfd49aa7439e63a0c0e8de6946f776d7285
check_kernel: ERR_PTR() returns non-NULL (mostly)

If you have p = ERR_PTR(x) then this says that if we know the value of
x then p is the same value.  If we don't know the value of x then it's
some error code.

Having this information eliminates some NULL dereference false positives.

The plan is that eventually everything will be sorted into stack pointers,
heap pointers, null pointers or error pointers.  Maybe users space
pointers?

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