diff options
Diffstat (limited to 'drivers/staging/cx25821/cx25821-video.c')
-rw-r--r-- | drivers/staging/cx25821/cx25821-video.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/cx25821/cx25821-video.c b/drivers/staging/cx25821/cx25821-video.c index ab05392386e8..7a0304a85735 100644 --- a/drivers/staging/cx25821/cx25821-video.c +++ b/drivers/staging/cx25821/cx25821-video.c @@ -832,6 +832,7 @@ static int video_open(struct file *file) if (NULL == dev) { mutex_unlock(&cx25821_devlist_mutex); + kfree(fh); return -ENODEV; } @@ -1573,7 +1574,7 @@ int cx25821_set_control(struct cx25821_dev *dev, break; default: /* nothing */ ; - }; + } switch (ctl->id) { case V4L2_CID_BRIGHTNESS: |