OSDN Git Service

nl80211: check nla_nest_start() return value
authorJohannes Berg <johannes.berg@intel.com>
Fri, 25 Oct 2013 09:16:58 +0000 (11:16 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Nov 2013 15:50:07 +0000 (16:50 +0100)
commit7fa322c878d70e38675f50e17acdce7fa3f5ac8c
tree2e25ac0a6badf54e809a708d54146d1b8144d9ca
parent9fe271af7d4de96471c5aaee2f4d0d1576050497
nl80211: check nla_nest_start() return value

Coverity pointed out that we might dereference NULL later
if nla_nest_start() returns a failure. This isn't really
true since we'd bomb out before, but we should check the
return value directly, so do that.

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