From: Gabor Juhos Date: Tue, 1 Jan 2008 12:51:09 +0000 (+0000) Subject: fix a bug in the switch driver, thanks to Thomas Langer for reporting X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3cc28b20ab3f1440b16cef5ffc035572fd440f9f;p=openwrt%2Fstaging%2Faparcar.git fix a bug in the switch driver, thanks to Thomas Langer for reporting SVN-Revision: 10075 --- diff --git a/target/linux/adm5120/files/drivers/net/adm5120sw.c b/target/linux/adm5120/files/drivers/net/adm5120sw.c index 234b6c5146..3833c1ef2d 100644 --- a/target/linux/adm5120/files/drivers/net/adm5120sw.c +++ b/target/linux/adm5120/files/drivers/net/adm5120sw.c @@ -1,7 +1,7 @@ /* * ADM5120 built-in ethernet switch driver * - * Copyright (C) 2007 Gabor Juhos + * Copyright (C) 2007,2008 Gabor Juhos * * This code was based on a driver for Linux 2.6.xx by Jeroen Vreeken. * Copyright Jeroen Vreeken (pe1rxq@amsat.org), 2005 @@ -879,7 +879,7 @@ static int adm5120_if_hard_start_xmit(struct sk_buff *skb, for (i = 0; i < SWITCH_NUM_PORTS; i++) { if (!adm5120_devs[i]) continue; - netif_stop_queue(dev); + netif_stop_queue(adm5120_devs[i]); } }