aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZinx Verituse <zinx@bluecherry.net>2006-02-02 00:09:02 -0500
committerChris Wright <chrisw@sous-sol.org>2006-02-09 23:20:09 -0800
commitd19356b3eea5f7360bf4efb48934022b5ddc3a05 (patch)
treed231975fcfb187569b759a834349410dd063926a
parentbc9e243ec87fdcbe51e2a4e7a0565c174d23acf6 (diff)
[PATCH] Input: sidewinder - fix an oops
Dynalloc conversion strikes again... Signed-off-by: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/input/joystick/sidewinder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/joystick/sidewinder.c b/drivers/input/joystick/sidewinder.c
index 78dd163cd70..03f9e7ed030 100644
--- a/drivers/input/joystick/sidewinder.c
+++ b/drivers/input/joystick/sidewinder.c
@@ -736,7 +736,7 @@ static int sw_connect(struct gameport *gameport, struct gameport_driver *drv)
sprintf(sw->name, "Microsoft SideWinder %s", sw_name[sw->type]);
sprintf(sw->phys[i], "%s/input%d", gameport->phys, i);
- input_dev = input_allocate_device();
+ sw->dev[i] = input_dev = input_allocate_device();
if (!input_dev) {
err = -ENOMEM;
goto fail3;