diff options
Diffstat (limited to 'drivers/usb/media/w9968cf.c')
-rw-r--r-- | drivers/usb/media/w9968cf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/media/w9968cf.c b/drivers/usb/media/w9968cf.c index 689e79e4bcee..ca9f3a30634f 100644 --- a/drivers/usb/media/w9968cf.c +++ b/drivers/usb/media/w9968cf.c | |||
@@ -3624,10 +3624,8 @@ w9968cf_usb_probe(struct usb_interface* intf, const struct usb_device_id* id) | |||
3624 | return 0; | 3624 | return 0; |
3625 | 3625 | ||
3626 | fail: /* Free unused memory */ | 3626 | fail: /* Free unused memory */ |
3627 | if (cam->control_buffer) | 3627 | kfree(cam->control_buffer); |
3628 | kfree(cam->control_buffer); | 3628 | kfree(cam->data_buffer); |
3629 | if (cam->data_buffer) | ||
3630 | kfree(cam->data_buffer); | ||
3631 | if (cam->v4ldev) | 3629 | if (cam->v4ldev) |
3632 | video_device_release(cam->v4ldev); | 3630 | video_device_release(cam->v4ldev); |
3633 | up(&cam->dev_sem); | 3631 | up(&cam->dev_sem); |