]> err.no Git - linux-2.6/commit
mac80211: fix access to null skb
authorLuis Carlos Cobo <luisca@cozybit.com>
Mon, 5 May 2008 19:29:42 +0000 (12:29 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 May 2008 01:22:18 +0000 (21:22 -0400)
commit69687a0b9934942e61bf8148c242adea87183a5b
treea235fcc6f21a97c95ff2c58d3f13fa129370b84d
parentef269254772a0d2253c85cafe160e3f6528eb292
mac80211: fix access to null skb

Without this patch, if xmit_skb is null but net_ratelimit() returns 0 we would
go to the else branch and access the null xmit_skb. Pointed out by Johannes
Berg.

Signed-off-by: Luis Carlos Cobo <luisca@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/rx.c