* [PATCH] [OF] request_module() use format string
@ 2008-06-12 5:02 maximilian attems
[not found] ` <1213246926-10043-1-git-send-email-max-U9r9yeDMy7A@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: maximilian attems @ 2008-06-12 5:02 UTC (permalink / raw)
To: davem-fT/PcQaiUtIeIZ0/mPfg9Q
Cc: maximilian attems, i2c-GZX6beZjE8VD60Wz+7aTrA
similar to 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b,
maybe writable by root thus worth fixing.
Signed-off-by: maximilian attems <max-U9r9yeDMy7A@public.gmane.org>
---
drivers/of/of_i2c.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/of/of_i2c.c b/drivers/of/of_i2c.c
index b2ccdcb..117de8b 100644
--- a/drivers/of/of_i2c.c
+++ b/drivers/of/of_i2c.c
@@ -100,7 +100,7 @@ void of_register_i2c_devices(struct i2c_adapter *adap,
info.addr = *addr;
- request_module(info.type);
+ request_module("%s", info.type);
result = i2c_new_device(adap, &info);
if (result == NULL) {
--
1.5.5.1
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <1213246926-10043-1-git-send-email-max-U9r9yeDMy7A@public.gmane.org>]
* Re: [PATCH] [OF] request_module() use format string [not found] ` <1213246926-10043-1-git-send-email-max-U9r9yeDMy7A@public.gmane.org> @ 2008-06-12 6:27 ` Jean Delvare [not found] ` <20080612082726.0f495687-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Jean Delvare @ 2008-06-12 6:27 UTC (permalink / raw) To: maximilian attems Cc: Paul Mackerras, davem-fT/PcQaiUtIeIZ0/mPfg9Q, i2c-GZX6beZjE8VD60Wz+7aTrA Hi Maximilian, On Thu, 12 Jun 2008 07:02:06 +0200, maximilian attems wrote: > similar to 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b, > maybe writable by root thus worth fixing. I don't think root can affect the value of the string, but the file it is read from could be broken. So yes it seems worth fixing. > > Signed-off-by: maximilian attems <max-U9r9yeDMy7A@public.gmane.org> > --- > drivers/of/of_i2c.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/of/of_i2c.c b/drivers/of/of_i2c.c > index b2ccdcb..117de8b 100644 > --- a/drivers/of/of_i2c.c > +++ b/drivers/of/of_i2c.c > @@ -100,7 +100,7 @@ void of_register_i2c_devices(struct i2c_adapter *adap, > > info.addr = *addr; > > - request_module(info.type); > + request_module("%s", info.type); > > result = i2c_new_device(adap, &info); > if (result == NULL) { Acked-by: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> I think you want to send this fix to Jochen Friedrich and Paul Mackerras (both Cc'd) as they are the ones working on this driver. -- Jean Delvare _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <20080612082726.0f495687-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>]
* Re: [PATCH] [OF] request_module() use format string [not found] ` <20080612082726.0f495687-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org> @ 2008-06-12 7:22 ` maximilian attems 0 siblings, 0 replies; 3+ messages in thread From: maximilian attems @ 2008-06-12 7:22 UTC (permalink / raw) To: Jean Delvare Cc: Paul Mackerras, davem-fT/PcQaiUtIeIZ0/mPfg9Q, i2c-GZX6beZjE8VD60Wz+7aTrA hello jean, On Thu, Jun 12, 2008 at 08:27:26AM +0200, Jean Delvare wrote: > Hi Maximilian, > > On Thu, 12 Jun 2008 07:02:06 +0200, maximilian attems wrote: > > similar to 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b, > > maybe writable by root thus worth fixing. > > I don't think root can affect the value of the string, but the file it > is read from could be broken. So yes it seems worth fixing. thanks for check. > > > > Signed-off-by: maximilian attems <max-U9r9yeDMy7A@public.gmane.org> > > --- > > drivers/of/of_i2c.c | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/drivers/of/of_i2c.c b/drivers/of/of_i2c.c > > index b2ccdcb..117de8b 100644 > > --- a/drivers/of/of_i2c.c > > +++ b/drivers/of/of_i2c.c > > @@ -100,7 +100,7 @@ void of_register_i2c_devices(struct i2c_adapter *adap, > > > > info.addr = *addr; > > > > - request_module(info.type); > > + request_module("%s", info.type); > > > > result = i2c_new_device(adap, &info); > > if (result == NULL) { > > Acked-by: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> > > I think you want to send this fix to Jochen Friedrich and Paul > Mackerras (both Cc'd) as they are the ones working on this driver. will do in a minute, with fixed desc. -- maks _______________________________________________ i2c mailing list i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org http://lists.lm-sensors.org/mailman/listinfo/i2c ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-12 7:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-12 5:02 [PATCH] [OF] request_module() use format string maximilian attems
[not found] ` <1213246926-10043-1-git-send-email-max-U9r9yeDMy7A@public.gmane.org>
2008-06-12 6:27 ` Jean Delvare
[not found] ` <20080612082726.0f495687-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-06-12 7:22 ` maximilian attems
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox