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)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 14 Sep 2023 21:31:55 +0000 (23:31 +0200)
commit735de5caf79e06cc9fb96b1b4f4974674ae3e917
tree991855114179912151c1391bcba1d2ed0da3fd9d
parent41ebaa5e0eebea4c3bac96b72f9f8ae0d77c0bdb
media: vb2: frame_vector.c: replace WARN_ONCE with a comment

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>
drivers/media/common/videobuf2/frame_vector.c