]> git.baikalelectronics.ru Git - kernel.git/commit
media: cx24120: Add retval check for cx24120_message_send()
authorDaniil Dulov <d.dulov@aladdin.ru>
Fri, 2 Jun 2023 08:55:01 +0000 (01:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:42:50 +0000 (09:42 +0200)
commita96892a40fcef5f12c4e649be75106957a177e02
tree48f8121e3cdde55909a2478d7b45b9b3c47a70db
parent2b6e20ef0585a467c24c7e4fde28518e5b33225a
media: cx24120: Add retval check for cx24120_message_send()

[ Upstream commit 96002c0ac824e1773d3f706b1f92e2a9f2988047 ]

If cx24120_message_send() returns error, we should keep local struct
unchanged.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 5afc9a25be8d ("[media] Add support for TechniSat Skystar S2")
Signed-off-by: Daniil Dulov <d.dulov@aladdin.ru>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/dvb-frontends/cx24120.c