[generic]: 3.0 is out
[openwrt.git] / package / madwifi / patches / 419-skb_unmap_crash.patch
1 --- a/ath/if_ath.c
2 +++ b/ath/if_ath.c
3 @@ -13499,7 +13499,7 @@ cleanup_ath_buf(struct ath_softc *sc, st
4 if (bf == NULL)
5 return bf;
6
7 - if (bf->bf_skbaddr) {
8 + if (bf->bf_skb && bf->bf_skbaddr) {
9 bus_unmap_single(
10 sc->sc_bdev,
11 bf->bf_skbaddr,
12 @@ -13507,8 +13507,6 @@ cleanup_ath_buf(struct ath_softc *sc, st
13 sc->sc_rxbufsize : bf->bf_skb->len),
14 direction);
15 bf->bf_skbaddr = 0;
16 - bf->bf_desc->ds_link = 0;
17 - bf->bf_desc->ds_data = 0;
18 }
19
20 #ifdef ATH_SUPERG_FF
This page took 0.040324 seconds and 5 git commands to generate.