container_of: people checking the return value of nla_data() are wrong
commitc42b63359e9aef42ca34c2d42e67ad353acaf9d1
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 16 Sep 2013 09:30:42 +0000 (16 12:30 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 16 Sep 2013 09:30:42 +0000 (16 12:30 +0300)
tree628aaf99eeb7f23d99b8a37e25267c63fa018ca6
parentb43a50f4edaf4c072de67615e5cfbc5bad4577e8
container_of: people checking the return value of nla_data() are wrong

There is no way that checking the return value of nla_data() makes sense.

People sometimes check it out of a reflex for checking every return value
which is normally harmless.  But sometimes they actually intended to check
something else and it leads to a bad dereference.

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