]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: v4l: async: Properly re-initialise notifier entry in unregister
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 8 Mar 2024 13:06:13 +0000 (15:06 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 10 Apr 2024 13:15:30 +0000 (15:15 +0200)
commit9537a8425a7a0222999d5839a0b394b1e8834b4a
treec2be61fa1f8d1961c23f13bd8ab3ca322190ac19
parent46bc0234ad38063ce550ecf135c1a52458f0a804
media: v4l: async: Properly re-initialise notifier entry in unregister

The notifier_entry of a notifier is not re-initialised after unregistering
the notifier. This leads to dangling pointers being left there so use
list_del_init() to return the notifier_entry an empty list.

Fixes: b8ec754ae4c5 ("media: v4l: async: Set v4l2_device and subdev in async notifier init")
Cc: <stable@vger.kernel.org> # for 6.6 and later
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/v4l2-core/v4l2-async.c