From: Anton Vorontsov <cbouatmailru@gmail.com>
To: Greg KH <greg@kroah.com>
Cc: schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com,
linux390@de.ibm.com, Kay Sievers <kay.sievers@vrfy.org>,
Cornelia Huck <cornelia.huck@de.ibm.com>,
linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 02/04] s390: bus_id -> dev_set_name() changes
Date: Thu, 3 Jul 2008 02:14:01 +0400 [thread overview]
Message-ID: <20080702221401.GA15142@zarina> (raw)
In-Reply-To: <20080702154811.GB31083@kroah.com>
On Wed, Jul 02, 2008 at 08:48:11AM -0700, Greg KH wrote:
> From: Cornelia Huck <cornelia.huck@de.ibm.com>
>
> Convert most s390 users setting bus_id to dev_set_name().
> css and ccw busses are deferred since they need some special
> treatment.
>
> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
> Cc: Kay Sievers <kay.sievers@vrfy.org>
> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
>
> ---
> drivers/s390/block/dcssblk.c | 2 +-
> drivers/s390/char/vmlogrdr.c | 3 +--
> drivers/s390/cio/ccwgroup.c | 3 +--
> drivers/s390/cio/chp.c | 3 +--
> drivers/s390/cio/css.c | 4 ++--
> drivers/s390/crypto/ap_bus.c | 4 ++--
> drivers/s390/net/netiucv.c | 2 +-
> drivers/s390/s390_rdev.c | 2 +-
> drivers/s390/scsi/zfcp_aux.c | 23 ++++++++---------------
> 9 files changed, 18 insertions(+), 28 deletions(-)
>
> --- a/drivers/s390/block/dcssblk.c
> +++ b/drivers/s390/block/dcssblk.c
> @@ -349,7 +349,7 @@ dcssblk_add_store(struct device *dev, st
> }
>
> strcpy(dev_info->segment_name, local_buf);
> - strlcpy(dev_info->dev.bus_id, local_buf, BUS_ID_SIZE);
> + dev_set_name(&dev_info->dev, local_buf);
As I see it, dev_set_name accepts printf like string, so this
dev_set_name is quite dangerous (since local_buf is formed
by the module param), no?
--
Anton Vorontsov
email: cbouatmailru@gmail.com
irc://irc.freenode.net/bd2
next prev parent reply other threads:[~2008-07-02 22:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 15:48 [PATCH 02/04] s390: bus_id -> dev_set_name() changes Greg KH
2008-07-02 22:14 ` Anton Vorontsov [this message]
2008-07-02 23:07 ` Greg KH
2008-07-03 0:18 ` Anton Vorontsov
2008-07-03 7:07 ` Cornelia Huck
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=20080702221401.GA15142@zarina \
--to=cbouatmailru@gmail.com \
--cc=cornelia.huck@de.ibm.com \
--cc=greg@kroah.com \
--cc=heiko.carstens@de.ibm.com \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux390@de.ibm.com \
--cc=schwidefsky@de.ibm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.