mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mac80211: fix use before check of Qdisc length
This patch fixes use of Qdisc length in requeue function, before we checked the reference is valid. (Adrian Bunk's catch) Signed-off-by: Ron Rindjunsky <[email protected]> Signed-off-by: Adrian Bunk <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
13d8fd2d15
commit
0da926f057
1 changed files with 1 additions and 1 deletions
|
|
@ -709,7 +709,7 @@ void ieee80211_requeue(struct ieee80211_local *local, int queue)
|
|||
struct ieee80211_sched_data *q = qdisc_priv(root_qd);
|
||||
struct Qdisc *qdisc = q->queues[queue];
|
||||
struct sk_buff *skb = NULL;
|
||||
u32 len = qdisc->q.qlen;
|
||||
u32 len;
|
||||
|
||||
if (!qdisc || !qdisc->dequeue)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue