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)
commit76e1fb4b5532a9df9eb14cfe002412c7617c4ad0
treeab1f7c13aa42ae797597020d2888abe107542b67
parent58bd7f1158ac7543ccdcddc7f4ecd7db458e6d0b
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