drivers/staging/cx25821/cx25821-video.c: introduce missing kfree
[firefly-linux-kernel-4.4.55.git] / drivers / staging / cx25821 / cx25821-video.c
index ab05392386e86e2f19b9214c94d57532759bcca7..04b18f4d98f8a5f05969345e39fb1d46c9c7106c 100644 (file)
@@ -832,6 +832,7 @@ static int video_open(struct file *file)
 
        if (NULL == dev) {
                mutex_unlock(&cx25821_devlist_mutex);
+               kfree(fh);
                return -ENODEV;
        }