media: v4l: async: Fix duplicated list deletion
authorSebastian Reichel <sre@kernel.org>
Mon, 13 Nov 2023 22:57:23 +0000 (23:57 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 4 Dec 2023 10:21:47 +0000 (11:21 +0100)
commit3de6ee94aae701fa949cd3b5df6b6a440ddfb8f2
treee387c3448554f2430c3e5ae3787f0655b3904b25
parent2112f3a28e8d9d1e2faaa32d124b450bde055b72
media: v4l: async: Fix duplicated list deletion

The list deletion call dropped here is already called from the
helper function in the line before. Having a second list_del()
call results in either a warning (with CONFIG_DEBUG_LIST=y):

list_del corruption, c46c8198->next is LIST_POISON1 (00000100)

If CONFIG_DEBUG_LIST is disabled the operation results in a
kernel error due to NULL pointer dereference.

Fixes: 28a1295795d8 ("media: v4l: async: Allow multiple connections between entities")
Signed-off-by: Sebastian Reichel <sre@kernel.org>
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