media: ov6650: Fix device node exposed without proper locking
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Sun, 2 Jun 2019 21:22:15 +0000 (17:22 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 21 Jun 2019 21:53:25 +0000 (17:53 -0400)
commit5c49ac3ac6562a39baa2aece050a14b661197036
tree892aaee709f55490abf0a5271da4ad52e723be44
parent26092e7eec3d1a5f2dd4fc9cb691bfdcdc558a51
media: ov6650: Fix device node exposed without proper locking

Commit c62b96050bee ("media: ov6650: Register with asynchronous
subdevice framework") carelessly requested creation of a video device
node by setting a V4L2_SUBDEV_FL_HAS_DEVNODE flag.  The driver is not
ready for that as it doesn't implement proper locking required for
serialization of IOCTLs.

Fix it by dropping the flag assignment.

Fixes: c62b96050bee ("media: ov6650: Register with asynchronous subdevice framework")
Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov6650.c