aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/ov511.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/ov511.c b/drivers/media/video/ov511.c
index 6085d5582555..a10912097b7a 100644
--- a/drivers/media/video/ov511.c
+++ b/drivers/media/video/ov511.c
@@ -5940,7 +5940,7 @@ ov51x_disconnect(struct usb_interface *intf)
5940 ov->dev = NULL; 5940 ov->dev = NULL;
5941 5941
5942 /* Free the memory */ 5942 /* Free the memory */
5943 if (ov && !ov->user) { 5943 if (!ov->user) {
5944 mutex_lock(&ov->cbuf_lock); 5944 mutex_lock(&ov->cbuf_lock);
5945 kfree(ov->cbuf); 5945 kfree(ov->cbuf);
5946 ov->cbuf = NULL; 5946 ov->cbuf = NULL;