Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36396
b: refs/heads/master
c: 17efe15
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov authored and Greg Kroah-Hartman committed Sep 27, 2006
1 parent 420ce76 commit f95ba81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: bd35078f47f795569fae29b2ff187e6f921460ad
refs/heads/master: 17efe155253e3f81caa6cc57ec2af1c128618698
8 changes: 6 additions & 2 deletions trunk/drivers/usb/storage/onetouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ int onetouch_connect_input(struct us_data *ss)
struct usb_onetouch *onetouch;
struct input_dev *input_dev;
int pipe, maxp;
int error = -ENOMEM;

interface = ss->pusb_intf->cur_altsetting;

Expand Down Expand Up @@ -211,15 +212,18 @@ int onetouch_connect_input(struct us_data *ss)
ss->suspend_resume_hook = usb_onetouch_pm_hook;
#endif

input_register_device(onetouch->dev);
error = input_register_device(onetouch->dev);
if (error)
goto fail3;

return 0;

fail3: usb_free_urb(onetouch->irq);
fail2: usb_buffer_free(udev, ONETOUCH_PKT_LEN,
onetouch->data, onetouch->data_dma);
fail1: kfree(onetouch);
input_free_device(input_dev);
return -ENOMEM;
return error;
}

void onetouch_release_input(void *onetouch_)
Expand Down

0 comments on commit f95ba81

Please sign in to comment.