]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: add missing null return check from call to ieee80211_get_sband
authorColin Ian King <colin.king@canonical.com>
Tue, 30 Jul 2019 14:32:05 +0000 (15:32 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 31 Jul 2019 08:51:17 +0000 (10:51 +0200)
commit407733c533a8cb485e733e1004dc32935f2eada6
tree1875465fcc0219a4e5beeebe5a65cece5c985af6
parent92fb42b99e9a4fe1686c770855bbcc6cf6e6573f
mac80211: add missing null return check from call to ieee80211_get_sband

The return from ieee80211_get_sband can potentially be a null pointer, so
it seems prudent to add a null check to avoid a null pointer dereference
on sband.

Addresses-Coverity: ("Dereference null return")
Fixes: 92fb42b99e9a ("mac80211: add support for the ADDBA extension element")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190730143205.14261-1-colin.king@canonical.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/agg-rx.c