LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [2.6.22.y] {10/17} - via-velocity-dont-oops-on-mtu-change-1 - series for stable kernel #2
@ 2008-02-02  1:34 Oliver Pinter (Pintér Olivér)
  2008-02-06 23:05 ` Oliver Pinter
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Pinter (Pintér Olivér) @ 2008-02-02  1:34 UTC (permalink / raw)
  To: Linux Kernel, stable, stable-commits
  Cc: chrisw, Greg KH, Willy Tarreau, Adrian Bunk, Stephen Hemminger,
	Jeff Garzik, Jeff Mahoney

[-- Attachment #1: Type: text/plain, Size: 72 bytes --]

mainline: bd7b3f34198071d8bec05180530c362f1800ba46


-- 
Thanks,
Oliver

[-- Attachment #2: via-velocity-dont-oops-on-mtu-change-1 --]
[-- Type: message/rfc822, Size: 890 bytes --]



CkRhdGU6IFRodSwgMTUgTm92IDIwMDcgMDM6NDc6MjcgKzAwMDAgKC0wODAwKQpTdWJqZWN0OiBb
VklBX1ZFTE9DSVRZXTogRG9uJ3Qgb29wcyBvbiBNVFUgY2hhbmdlLgpQYXRjaC1tYWlubGluZTog
djIuNi4yNC1yYzMKUmVmZXJlbmNlczogMzQxNTM3CgpbVklBX1ZFTE9DSVRZXTogRG9uJ3Qgb29w
cyBvbiBNVFUgY2hhbmdlLgoKU2ltcGxlIG10dSBjaGFuZ2Ugd2hlbiBkZXZpY2UgaXMgZG93bi4K
Rml4IGh0dHA6Ly9idWd6aWxsYS5rZXJuZWwub3JnL3Nob3dfYnVnLmNnaT9pZD05MzgyLgoKU2ln
bmVkLW9mZi1ieTogU3RlcGhlbiBIZW1taW5nZXIgPHNoZW1taW5nZXJAbGludXgtZm91bmRhdGlv
bi5vcmc+ClNpZ25lZC1vZmYtYnk6IERhdmlkIFMuIE1pbGxlciA8ZGF2ZW1AZGF2ZW1sb2Z0Lm5l
dD4KQWNrZWQtYnk6IEplZmYgTWFob25leSA8amVmZm1Ac3VzZS5jb20+Ci0tLQogZHJpdmVycy9u
ZXQvdmlhLXZlbG9jaXR5LmMgfCAgICA1ICsrKysrCiAxIGZpbGUgY2hhbmdlZCwgNSBpbnNlcnRp
b25zKCspCgotLS0gYS9kcml2ZXJzL25ldC92aWEtdmVsb2NpdHkuYwkyMDA4LTAxLTAzIDE1OjE4
OjM1LjAwMDAwMDAwMCAtMDUwMAorKysgYi9kcml2ZXJzL25ldC92aWEtdmVsb2NpdHkuYwkyMDA4
LTAxLTAzIDE1OjE4OjUwLjAwMDAwMDAwMCAtMDUwMApAQCAtMTc5OCw2ICsxNzk4LDExIEBAIHN0
YXRpYyBpbnQgdmVsb2NpdHlfY2hhbmdlX210dShzdHJ1Y3QgbmUKIAkJcmV0dXJuIC1FSU5WQUw7
CiAJfQogCisJaWYgKCFuZXRpZl9ydW5uaW5nKGRldikpIHsKKwkJZGV2LT5tdHUgPSBuZXdfbXR1
OworCQlyZXR1cm4gMDsKKwl9CisKIAlpZiAobmV3X210dSAhPSBvbGRtdHUpIHsKIAkJc3Bpbl9s
b2NrX2lycXNhdmUoJnZwdHItPmxvY2ssIGZsYWdzKTsKIAo=

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2.6.22.y] {10/17} - via-velocity-dont-oops-on-mtu-change-1 - series for stable kernel #2
  2008-02-02  1:34 [2.6.22.y] {10/17} - via-velocity-dont-oops-on-mtu-change-1 - series for stable kernel #2 Oliver Pinter (Pintér Olivér)
@ 2008-02-06 23:05 ` Oliver Pinter
  0 siblings, 0 replies; 2+ messages in thread
From: Oliver Pinter @ 2008-02-06 23:05 UTC (permalink / raw)
  To: Linux Kernel, stable, stable-commits

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.

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>
---
 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);



On 2/2/08, Oliver Pinter (Pintér Olivér) <oliver.pntr@gmail.com> wrote:
> mainline: bd7b3f34198071d8bec05180530c362f1800ba46
>
>
> --
> Thanks,
> Oliver
>


-- 
Thanks,
Oliver

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-06 23:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-02  1:34 [2.6.22.y] {10/17} - via-velocity-dont-oops-on-mtu-change-1 - series for stable kernel #2 Oliver Pinter (Pintér Olivér)
2008-02-06 23:05 ` 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).