]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: nl80211hdr_put() doesn't return an ERR_PTR
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Aug 2013 11:50:01 +0000 (14:50 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 14 Aug 2013 12:00:12 +0000 (14:00 +0200)
commit6db7bef668c81e6af53565510c766daa51e2d5e9
tree1298bda5a5f8d7225632d27f82c624d5c3883d33
parentfb699ea28977136611359b9e2445aebfe0ffc9ef
nl80211: nl80211hdr_put() doesn't return an ERR_PTR

There are a few places which check nl80211hdr_put() for an ERR_PTR
but actually it returns NULL on error and never error values.  In
nl80211_testmode_dump() the return wasn't checked at all so I have
added one.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[some whitespace changes]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c