]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: vb2: frame_vector.c: replace WARN_ONCE with a comment
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 17 Aug 2023 10:41:32 +0000 (12:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 11:18:18 +0000 (13:18 +0200)
commit134b01a39077d96cd827f7139368be80c28ab1c5
tree6c2107203550247b96cd2895b4561e2045959c40
parentbaf7cf0fdb837e85aa63da814031a1a9d5156ae1
media: vb2: frame_vector.c: replace WARN_ONCE with a comment

[ Upstream commit 735de5caf79e06cc9fb96b1b4f4974674ae3e917 ]

The WARN_ONCE was issued also in cases that had nothing to do with VM_IO
(e.g. if the start address was just a random value and uaccess fails with
-EFAULT).

There are no reports of WARN_ONCE being issued for actual VM_IO cases, so
just drop it and instead add a note to the comment before the function.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reported-by: Yikebaer Aizezi <yikebaer61@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/common/videobuf2/frame_vector.c