aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-01-01 12:51:09 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-01-01 12:51:09 +0000
commit68371209a209f26a1d6407220826ae8b029e5da0 (patch)
treed867e97af1dea62da8554e2a5470458cad1956a3 /target/linux
parent895947ea07b0842e34e1b994fcafd0f89af93cb9 (diff)
downloadupstream-68371209a209f26a1d6407220826ae8b029e5da0.tar.gz
upstream-68371209a209f26a1d6407220826ae8b029e5da0.tar.bz2
upstream-68371209a209f26a1d6407220826ae8b029e5da0.zip
[adm5120] fix a bug in the switch driver, thanks to Thomas Langer for reporting
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10075 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/adm5120/files/drivers/net/adm5120sw.c4
1 files changed, 2 insertions, 2 deletions
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 <juhosg at openwrt.org>
+ * Copyright (C) 2007,2008 Gabor Juhos <juhosg at openwrt.org>
*
* 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]);
}
}