mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +00:00
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>
This commit is contained in:
parent
2e9d675ed2
commit
847fd5fbf7
1 changed files with 1 additions and 1 deletions
|
@ -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->name, "Microsoft SideWinder %s", sw_name[sw->type]);
|
||||||
sprintf(sw->phys[i], "%s/input%d", gameport->phys, i);
|
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) {
|
if (!input_dev) {
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
goto fail3;
|
goto fail3;
|
||||||
|
|
Loading…
Reference in a new issue