diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2011-07-11 10:48:09 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2011-07-11 11:27:43 -0700 |
commit | 23b6dd6ff795b3ed4e327d42fbc1e646e1f00e98 (patch) | |
tree | 59d0d47e2d251a14848d70b082da745af0f90ca5 /drivers/net/wireless/bcmdhd | |
parent | 7543710368958d90b50f454ee225a79451fce595 (diff) |
net: wireless: bcmdhd: Fix crash if event queue is empty
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'drivers/net/wireless/bcmdhd')
-rw-r--r-- | drivers/net/wireless/bcmdhd/wl_cfg80211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/bcmdhd/wl_cfg80211.c b/drivers/net/wireless/bcmdhd/wl_cfg80211.c index d9c7e658769..ef5cd47b278 100644 --- a/drivers/net/wireless/bcmdhd/wl_cfg80211.c +++ b/drivers/net/wireless/bcmdhd/wl_cfg80211.c @@ -4892,8 +4892,8 @@ static s32 wl_event_handler(void *data) break; e = wl_deq_event(wl); if (unlikely(!e)) { - WL_ERR(("eqeue empty..\n")); - BUG(); + WL_ERR(("equeue empty..\n")); + return 0; } WL_DBG(("event type (%d), if idx: %d\n", e->etype, e->emsg.ifidx)); netdev = dhd_idx2net((struct dhd_pub *)(wl->pub), e->emsg.ifidx); |