From: Dan Aloni <da-x@gmx.net>
To: Greg KH <greg@kroah.com>
Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [BK PATCH] PCI and sysfs fixes for 2.5.73
Date: Fri, 4 Jul 2003 09:52:17 +0300 [thread overview]
Message-ID: <20030704065217.GA22032@callisto.yi.org> (raw)
In-Reply-To: <20030704020634.GA4316@kroah.com>
On Thu, Jul 03, 2003 at 07:06:34PM -0700, Greg KH wrote:
> Hi,
>
> Here's some PCI and sysfs fixes that are against the latest 2.5.74 bk
> tree. They include Matthew Wilcox's set of pci cleanups, and sysfs
> fixes for binary files. That led into my sysfs attribute file change,
> which required John Stultz's timer build fix. I've also added the
> sysfs/kobject/class rename patches based on previously posted patches.
That's good, but I see that you didn't add the call to class_device_rename()
in net/core/dev.c, and that's kinda misses the point ;)
--- linux/net/core/dev.c 2003-06-29 22:16:29.000000000 +0300
+++ linux/net/core/dev.c 2003-06-30 20:57:55.000000000 +0300
@@ -2346,10 +2346,14 @@
return -EEXIST;
memcpy(dev->name, ifr->ifr_newname, IFNAMSIZ);
dev->name[IFNAMSIZ - 1] = 0;
- strlcpy(dev->class_dev.class_id, dev->name, BUS_ID_SIZE);
+
+ err = class_device_rename(&dev->class_dev, dev->name);
+ if (err)
+ printk(KERN_DEBUG "SIOCSIFNAME: error renaming class_device (%d)\n", err);
+
notifier_call_chain(&netdev_chain,
NETDEV_CHANGENAME, dev);
- return 0;
+ return err;
/*
* Unknown or private ioctl
--
Dan Aloni
da-x@gmx.net
next prev parent reply other threads:[~2003-07-04 6:37 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-04 2:06 [BK PATCH] PCI and sysfs fixes for 2.5.73 Greg KH
2003-07-04 2:09 ` [PATCH] PCI and sysfs fixes for 2.5.74 Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 2:09 ` Greg KH
2003-07-04 6:52 ` Dan Aloni [this message]
2003-07-04 17:05 ` [BK PATCH] PCI and sysfs fixes for 2.5.73 Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030704065217.GA22032@callisto.yi.org \
--to=da-x@gmx.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox