* [PATCH] ssb: Fix regression in 2.6.23-git3 due to change in calling add_uevent_var
@ 2007-10-14 4:46 Larry Finger
2007-10-14 9:35 ` Michael Buesch
2007-10-17 1:03 ` John W. Linville
0 siblings, 2 replies; 3+ messages in thread
From: Larry Finger @ 2007-10-14 4:46 UTC (permalink / raw)
To: Linus Torvalds, Andrew Morton
Cc: kay.sievers, linux-kernel, Bcm43xx-dev, linux-wireless,
Michael Buesch
In commit 7eff2e7a8b65c25920207324e56611150eb1cd9a, the calling sequence
for add_uevent_var was changed, but the ssb driver was not modified, which
leads to a "Unable to handle kernel paging request" oops. This patch fixes
the problem.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---
drivers/ssb/main.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
Index: linux-2.6/drivers/ssb/main.c
===================================================================
--- linux-2.6.orig/drivers/ssb/main.c
+++ linux-2.6/drivers/ssb/main.c
@@ -320,22 +320,17 @@ static int ssb_bus_match(struct device *
return 0;
}
-static int ssb_device_uevent(struct device *dev, char **envp, int num_envp,
- char *buffer, int buffer_size)
+static int ssb_device_uevent(struct device *dev, struct kobj_uevent_env *env)
{
struct ssb_device *ssb_dev = dev_to_ssb_dev(dev);
- int ret, i = 0, length = 0;
+ int ret;
if (!dev)
return -ENODEV;
- ret = add_uevent_var(envp, num_envp, &i,
- buffer, buffer_size, &length,
- "MODALIAS=ssb:v%04Xid%04Xrev%02X",
+ ret = add_uevent_var(env, "MODALIAS=ssb:v%04Xid%04Xrev%02X",
ssb_dev->id.vendor, ssb_dev->id.coreid,
ssb_dev->id.revision);
- envp[i] = NULL;
-
return ret;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ssb: Fix regression in 2.6.23-git3 due to change in calling add_uevent_var
2007-10-14 4:46 [PATCH] ssb: Fix regression in 2.6.23-git3 due to change in calling add_uevent_var Larry Finger
@ 2007-10-14 9:35 ` Michael Buesch
2007-10-17 1:03 ` John W. Linville
1 sibling, 0 replies; 3+ messages in thread
From: Michael Buesch @ 2007-10-14 9:35 UTC (permalink / raw)
To: Larry Finger
Cc: Linus Torvalds, Andrew Morton, kay.sievers, linux-kernel,
Bcm43xx-dev, linux-wireless
On Sunday 14 October 2007 06:46:47 Larry Finger wrote:
> In commit 7eff2e7a8b65c25920207324e56611150eb1cd9a, the calling sequence
> for add_uevent_var was changed, but the ssb driver was not modified, which
> leads to a "Unable to handle kernel paging request" oops. This patch fixes
> the problem.
>
> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Acked-by: Michael Buesch <mb@bu3sch.de>
> ---
>
> drivers/ssb/main.c | 11 +++--------
> 1 file changed, 3 insertions(+), 8 deletions(-)
>
> Index: linux-2.6/drivers/ssb/main.c
> ===================================================================
> --- linux-2.6.orig/drivers/ssb/main.c
> +++ linux-2.6/drivers/ssb/main.c
> @@ -320,22 +320,17 @@ static int ssb_bus_match(struct device *
> return 0;
> }
>
> -static int ssb_device_uevent(struct device *dev, char **envp, int num_envp,
> - char *buffer, int buffer_size)
> +static int ssb_device_uevent(struct device *dev, struct kobj_uevent_env *env)
> {
> struct ssb_device *ssb_dev = dev_to_ssb_dev(dev);
> - int ret, i = 0, length = 0;
> + int ret;
>
> if (!dev)
> return -ENODEV;
>
> - ret = add_uevent_var(envp, num_envp, &i,
> - buffer, buffer_size, &length,
> - "MODALIAS=ssb:v%04Xid%04Xrev%02X",
> + ret = add_uevent_var(env, "MODALIAS=ssb:v%04Xid%04Xrev%02X",
> ssb_dev->id.vendor, ssb_dev->id.coreid,
> ssb_dev->id.revision);
> - envp[i] = NULL;
> -
> return ret;
> }
>
>
>
--
Greetings Michael.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ssb: Fix regression in 2.6.23-git3 due to change in calling add_uevent_var
2007-10-14 4:46 [PATCH] ssb: Fix regression in 2.6.23-git3 due to change in calling add_uevent_var Larry Finger
2007-10-14 9:35 ` Michael Buesch
@ 2007-10-17 1:03 ` John W. Linville
1 sibling, 0 replies; 3+ messages in thread
From: John W. Linville @ 2007-10-17 1:03 UTC (permalink / raw)
To: Larry Finger
Cc: Linus Torvalds, Andrew Morton, kay.sievers, linux-kernel,
Bcm43xx-dev, linux-wireless, Michael Buesch
On Sat, Oct 13, 2007 at 11:46:47PM -0500, Larry Finger wrote:
> In commit 7eff2e7a8b65c25920207324e56611150eb1cd9a, the calling sequence
> for add_uevent_var was changed, but the ssb driver was not modified, which
> leads to a "Unable to handle kernel paging request" oops. This patch fixes
> the problem.
Sorry, Al Viro got a patch merged before I got to yours!
Thanks anyway!
John
--
John W. Linville
linville@tuxdriver.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-17 2:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-14 4:46 [PATCH] ssb: Fix regression in 2.6.23-git3 due to change in calling add_uevent_var Larry Finger
2007-10-14 9:35 ` Michael Buesch
2007-10-17 1:03 ` John W. Linville
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).