]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: always check nla_nest_start() return value
authorJohannes Berg <johannes.berg@intel.com>
Wed, 14 Sep 2016 07:55:57 +0000 (09:55 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 15 Sep 2016 14:46:17 +0000 (16:46 +0200)
commit9d8d58aebd818b1b3c7780d0496bbe5e29cd0772
treeab1f7c13aa42ae797597020d2888abe107542b67
parent6eea653526c8e4d416daccb0992832cd4a1c403b
nl80211: always check nla_nest_start() return value

If the message got full during nla_nest_start(), it can return
NULL. None of the cases here seem like that can really happen,
but check the return value nonetheless.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c