diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-02-23 15:25:55 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-12 12:12:43 +0300 |
commit | cceda163b711ab4d6799223c6c60308a26590558 (patch) | |
tree | 85f390cef3fb3660ec0f976796f0eca207b5fade /include/media | |
parent | 8f40b92f54802f6ff80b01f7cedc527d625c7f77 (diff) | |
download | linux-cceda163b711ab4d6799223c6c60308a26590558.tar.xz |
media: cec: cec-api: add locking in cec_release()
[ Upstream commit 42bcaacae924bf18ae387c3f78c202df0b739292 ]
When cec_release() uses fh->msgs it has to take fh->lock,
otherwise the list can get corrupted.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: Yang, Chenyuan <cy54@illinois.edu>
Closes: https://lore.kernel.org/linux-media/PH7PR11MB57688E64ADE4FE82E658D86DA09EA@PH7PR11MB5768.namprd11.prod.outlook.com/
Fixes: ca684386e6e2 ("[media] cec: add HDMI CEC framework (api)")
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/media')
0 files changed, 0 insertions, 0 deletions