diff options
author | Pavel Roskin <proski@gnu.org> | 2007-06-02 14:00:49 -0400 |
---|---|---|
committer | Guido Guenther <agx@bogon.sigxcpu.org> | 2007-06-03 18:38:24 +0200 |
commit | 59f97d1097d254cab76d265b09b74a873b4c29a5 (patch) | |
tree | cd0bfc7869bc35e7853a9808fafbb4174e1aade0 | |
parent | 6aa3b2403fbeba2309571b2bff5221ef9c179fe1 (diff) |
[PATCH] at76_delete_device() already calls usb_put_dev(), don't do it again
Now the driver doesn't crash the kernel if the firmware is present but
invalid.
Signed-off-by: Pavel Roskin <proski@gnu.org>
-rw-r--r-- | at76_usb.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6307,6 +6307,8 @@ static int at76_probe(struct usb_interface *interface, error: at76_delete_device(priv); + return ret; + error_alloc: usb_put_dev(udev); return ret; |