David S. Miller <[EMAIL PROTECTED]> : [...] > Please, if anyone has the stomache to try and fix the ATM drivers > (I think the two that need fixing is nicstar.c and zatm.c, grep > for skb_unlink() calls using only one argument), I would _seriously_ > appreciate it, thanks.
This one should use the relevant sk_buff_head for zatm.c. Uncompiled. nicstar is more interesting. Signed-off-by: Francois Romieu <[EMAIL PROTECTED]> diff -puN drivers/atm/zatm.c~atm-000 drivers/atm/zatm.c --- linux-2.6.13-rc2-gitXX/drivers/atm/zatm.c~atm-000 2005-07-12 17:59:42.837892885 +0200 +++ linux-2.6.13-rc2-gitXX-romieu/drivers/atm/zatm.c 2005-07-12 18:40:31.553717185 +0200 @@ -417,10 +417,12 @@ printk("dummy: 0x%08lx, 0x%08lx\n",dummy chan = (here[3] & uPD98401_AAL5_CHAN) >> uPD98401_AAL5_CHAN_SHIFT; if (chan < zatm_dev->chans && zatm_dev->rx_map[chan]) { + int pos = ZATM_VCC(vcc)->pool; + vcc = zatm_dev->rx_map[chan]; - if (skb == zatm_dev->last_free[ZATM_VCC(vcc)->pool]) - zatm_dev->last_free[ZATM_VCC(vcc)->pool] = NULL; - skb_unlink(skb); + if (skb == zatm_dev->last_free[pos]) + zatm_dev->last_free[pos] = NULL; + skb_unlink(skb, zatm_dev->pool + pos); } else { printk(KERN_ERR DEV_LABEL "(itf %d): RX indication " _ - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html