media: venus: hfi: fix the check to handle session buffer requirement
Buffer requirement, for different buffer type, comes from video firmware. While copying these requirements, there is an OOB possibility when the payload from firmware is more than expected size. Fix the check to avoid the OOB possibility. Cc: stable@vger.kernel.org Fixes: 09c2845e ("[media] media: venus: hfi: add Host Firmware Interface (HFI)") Reviewed-by:Nathan Hebert <nhebert@chromium.org> Signed-off-by:
Vikash Garodia <quic_vgarodia@quicinc.com> Signed-off-by:
Stanimir Varbanov <stanimir.k.varbanov@gmail.com> Signed-off-by:
Hans Verkuil <hverkuil-cisco@xs4all.nl>
Loading
-
mentioned in commit b8427824
-
mentioned in commit 0f55234b
-
mentioned in commit e47df686
-
mentioned in commit ae6c04f2
-
mentioned in commit d02ba2db
-
mentioned in commit c03da174
-
mentioned in commit d156b798
-
mentioned in commit 83840980
-
mentioned in commit 64fb9879
-
mentioned in commit 883790ba
-
mentioned in commit 1d9b1bd8
-
mentioned in commit 979533ac
-
mentioned in commit 64bd03bc
-
mentioned in commit fad3303d
-
mentioned in commit a7cfa7fd
-
mentioned in commit ee828093
-
mentioned in commit 45486ca3
-
mentioned in commit d78ae9ba
-
mentioned in commit a958a8bc
-
mentioned in commit 6961aa6b
-
mentioned in commit bc3ade71
Please sign in to comment