]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2-core: return -ENODEV from ioctl when not registered
authorArnd Bergmann <arnd@arndb.de>
Mon, 14 Jun 2021 10:34:06 +0000 (12:34 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 17 Jun 2021 08:17:01 +0000 (10:17 +0200)
commit20120ac8dd0d46990de7129d4f12bd7975afc91b
tree11416ca173c8d583ad9742bdd4dde81d86ea79ca
parent268da3b4fbf9bc217660c2e8aaa1e1207d94bb62
media: v4l2-core: return -ENODEV from ioctl when not registered

I spotted a minor difference is handling of unregistered devices
between native and compat ioctls: the native handler never tries
to call into the driver if a device is not marked as registered.

I did not check whether this can cause issues in the kernel, or
just a different between return codes, but it clearly makes
sense that both should behave the same way.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-compat-ioctl32.c