Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27007
b: refs/heads/master
c: 7363cfc
h: refs/heads/master
i:
  27005: 8b5195b
  27003: 82e2a4f
  26999: 18e6b19
  26991: a2fcf37
  26975: a062af8
  26943: 1a474f4
  26879: 7ba7acb
v: v3
  • Loading branch information
Jesper Juhl authored and Dmitry Torokhov committed May 30, 2006
1 parent c2f2b7d commit 0e05105
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f39b25bed373cf11a2c0490bee8b0ac430aadff4
refs/heads/master: 7363cfc8666692a5263c646e68e54900b536cd7e
11 changes: 6 additions & 5 deletions trunk/drivers/input/joystick/sidewinder.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ static int sw_connect(struct gameport *gameport, struct gameport_driver *drv)
struct sw *sw;
struct input_dev *input_dev;
int i, j, k, l;
int err;
int err = 0;
unsigned char *buf = NULL; /* [SW_LENGTH] */
unsigned char *idbuf = NULL; /* [SW_LENGTH] */
unsigned char m = 1;
Expand Down Expand Up @@ -776,17 +776,18 @@ static int sw_connect(struct gameport *gameport, struct gameport_driver *drv)
goto fail4;
}

return 0;
out: kfree(buf);
kfree(idbuf);

return err;

fail4: input_free_device(sw->dev[i]);
fail3: while (--i >= 0)
input_unregister_device(sw->dev[i]);
fail2: gameport_close(gameport);
fail1: gameport_set_drvdata(gameport, NULL);
kfree(sw);
kfree(buf);
kfree(idbuf);
return err;
goto out;
}

static void sw_disconnect(struct gameport *gameport)
Expand Down

0 comments on commit 0e05105

Please sign in to comment.