media: v4l: async: Don't set notifier's V4L2 device if registering fails
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 8 Mar 2024 13:07:45 +0000 (15:07 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 10 Apr 2024 13:15:30 +0000 (15:15 +0200)
commit46bc0234ad38063ce550ecf135c1a52458f0a804
tree93b88dd18a20fa3f14788e3f3263cceb9c6b7586
parent6d8acd02c4c6a8f917eefac1de2e035521ca119d
media: v4l: async: Don't set notifier's V4L2 device if registering fails

The V4L2 device used to be set when the notifier was registered but this
has been moved to the notifier initialisation. Don't touch the V4L2 device
if registration fails.

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