commit | 5014186de89708d0e9eed60526b698d5b786b707 | [log] [tgz] |
---|---|---|
author | Dmitry Torokhov <dtor@insightbb.com> | Thu Apr 12 01:33:39 2007 -0400 |
committer | Dmitry Torokhov <dtor@insightbb.com> | Thu Apr 12 01:33:39 2007 -0400 |
tree | 949ea6219db7779f635a34278325bd2d9617c657 | |
parent | db61a9124880a1d79b7b320d4b6bef717f23e485 [diff] [blame] |
Input: USB devices - handle errors when registering input devices Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
diff --git a/drivers/usb/input/yealink.c b/drivers/usb/input/yealink.c index caff8e6..688abcd 100644 --- a/drivers/usb/input/yealink.c +++ b/drivers/usb/input/yealink.c
@@ -955,7 +955,9 @@ } } - input_register_device(yld->idev); + ret = input_register_device(yld->idev); + if (ret) + return usb_cleanup(yld, ret); usb_set_intfdata(intf, yld);