LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [2.6.22.y] {08/14} - [VIA_VELOCITY]: Don't oops on MTU change - on top of 2.6.22.17
@ 2008-02-07 20:03 Oliver Pinter
0 siblings, 0 replies; only message in thread
From: Oliver Pinter @ 2008-02-07 20:03 UTC (permalink / raw)
To: Linux Kernel, stable, stable-commits
aka: via-velocity-dont-oops-on-mtu-change-1.patch
From: Stephen Hemminger <shemminger@linux-foundation.org>
Date: Thu, 15 Nov 2007 03:47:27 +0000 (-0800)
Subject: [VIA_VELOCITY]: Don't oops on MTU change.
Patch-mainline: v2.6.24-rc3
References: 341537
[VIA_VELOCITY]: Don't oops on MTU change.
mainline: bd7b3f34198071d8bec05180530c362f1800ba46
Simple mtu change when device is down.
Fix http://bugzilla.kernel.org/show_bug.cgi?id=9382.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Jeff Mahoney <jeffm@suse.com>
CC: Oliver Pinter <oliver.pntr@gmail.com>
---
drivers/net/via-velocity.c | 5 +++++
1 file changed, 5 insertions(+)
--- a/drivers/net/via-velocity.c 2008-01-03 15:18:35.000000000 -0500
+++ b/drivers/net/via-velocity.c 2008-01-03 15:18:50.000000000 -0500
@@ -1798,6 +1798,11 @@ static int velocity_change_mtu(struct ne
return -EINVAL;
}
+ if (!netif_running(dev)) {
+ dev->mtu = new_mtu;
+ return 0;
+ }
+
if (new_mtu != oldmtu) {
spin_lock_irqsave(&vptr->lock, flags);
--
Thanks,
Oliver
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-07 20:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-07 20:03 [2.6.22.y] {08/14} - [VIA_VELOCITY]: Don't oops on MTU change - on top of 2.6.22.17 Oliver Pinter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).