Skip to content

Commit

Permalink
rtl8180: avoid potential NULL deref in rtl8180_beacon_work
Browse files Browse the repository at this point in the history
ieee80211_beacon_get can return NULL...

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Cc: stable@kernel.org
  • Loading branch information
John W. Linville committed Aug 5, 2010
1 parent c5d2711 commit 8f1d2d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/wireless/rtl818x/rtl8180_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,8 @@ static void rtl8180_beacon_work(struct work_struct *work)

/* grab a fresh beacon */
skb = ieee80211_beacon_get(dev, vif);
if (!skb)
goto resched;

/*
* update beacon timestamp w/ TSF value
Expand Down

0 comments on commit 8f1d2d2

Please sign in to comment.