Commit 8f1d2d2b authored by John W. Linville's avatar John W. Linville

rtl8180: avoid potential NULL deref in rtl8180_beacon_work

ieee80211_beacon_get can return NULL...
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Cc: stable@kernel.org
parent c5d2711c
...@@ -695,6 +695,8 @@ static void rtl8180_beacon_work(struct work_struct *work) ...@@ -695,6 +695,8 @@ static void rtl8180_beacon_work(struct work_struct *work)
/* grab a fresh beacon */ /* grab a fresh beacon */
skb = ieee80211_beacon_get(dev, vif); skb = ieee80211_beacon_get(dev, vif);
if (!skb)
goto resched;
/* /*
* update beacon timestamp w/ TSF value * update beacon timestamp w/ TSF value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment