]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: v4l: async: Return async sub-devices to subnotifier list
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 7 Mar 2023 13:49:44 +0000 (15:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:11:06 +0000 (23:11 +0900)
commitb04906fb4b260ec062a7dc4094a58de3deb6104f
tree4caf013ea742fc7dda1205f549a09176a395965c
parent59c6addfaaaa09ff7654e4d8793cb16fd22a46d4
media: v4l: async: Return async sub-devices to subnotifier list

[ Upstream commit 5276c9df9c2ab9a43b534bfb56bdb10899cd3a22 ]

When an async notifier is unregistered, the async sub-devices in the
notifier's done list will disappear with the notifier. However this is
currently also done to the sub-notifiers that remain registered. Their
sub-devices only need to be unbound while the async sub-devices themselves
need to be returned to the sub-notifier's waiting list. Do this now.

Fixes: 2cab00bb076b ("media: v4l: async: Allow binding notifiers to sub-devices")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/v4l2-core/v4l2-async.c