projects
/
wrapfs-3.16.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b9fba4
)
media: Fix media_open() to clear filp->private_data in error leg
author
Shuah Khan
<shuahkh@osg.samsung.com>
Wed, 27 Jan 2016 23:49:33 +0000
(21:49 -0200)
committer
Ben Hutchings
<ben@decadent.org.uk>
Tue, 28 Apr 2020 18:03:48 +0000
(19:03 +0100)
commit
d40ec6fdb0b03b7be4c7923a3da0e46bf943740a
upstream.
Fix media_open() to clear filp->private_data when file open
fails.
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/media-devnode.c
patch
|
blob
|
history
diff --git
a/drivers/media/media-devnode.c
b/drivers/media/media-devnode.c
index ebf9626e5ae5a709f2cb76b3a1c173d7ddb106ba..a8cb52dc8c4ff953834fe4bc854cd406abf4721e 100644
(file)
--- a/
drivers/media/media-devnode.c
+++ b/
drivers/media/media-devnode.c
@@
-181,6
+181,7
@@
static int media_open(struct inode *inode, struct file *filp)
ret = mdev->fops->open(filp);
if (ret) {
put_device(&mdev->dev);
+ filp->private_data = NULL;
return ret;
}
}