]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mac80211: fix possible NULL pointerderef in obss pd code
authorJohn Crispin <john@phrozen.org>
Tue, 13 Aug 2019 07:07:12 +0000 (09:07 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Aug 2019 08:58:32 +0000 (10:58 +0200)
he_spr_ie_elem is dereferenced before the NULL check. fix this by moving
the assignment after the check.

fixes commit 697f6c507c74 ("mac80211: propagate HE operation info into
bss_conf")

This was reported by the static code checker.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John Crispin <john@phrozen.org>
Link: https://lore.kernel.org/r/20190813070712.25509-1-john@phrozen.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

No differences found