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)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 19 Jul 2023 10:57:48 +0000 (12:57 +0200)
commit96002c0ac824e1773d3f706b1f92e2a9f2988047
treef57721eedbb47884d5d3d7b3351423e4759a5730
parent35ca8ce495366909b4c2e701d1356570dd40c4e2
media: cx24120: Add retval check for cx24120_message_send()

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>
drivers/media/dvb-frontends/cx24120.c