mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-26 20:40:24 +09:00
media: pulse8-cec: handle possible ping error
[ Upstream commit 92cbf865ea ]
Handle (and warn about) possible error waiting for MSGCODE_PING result.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f281a37393
commit
17d75773b6
@@ -809,8 +809,11 @@ static void pulse8_ping_eeprom_work_handler(struct work_struct *work)
|
||||
|
||||
mutex_lock(&pulse8->lock);
|
||||
cmd = MSGCODE_PING;
|
||||
pulse8_send_and_wait(pulse8, &cmd, 1,
|
||||
MSGCODE_COMMAND_ACCEPTED, 0);
|
||||
if (pulse8_send_and_wait(pulse8, &cmd, 1,
|
||||
MSGCODE_COMMAND_ACCEPTED, 0)) {
|
||||
dev_warn(pulse8->dev, "failed to ping EEPROM\n");
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
if (pulse8->vers < 2)
|
||||
goto unlock;
|
||||
|
||||
Reference in New Issue
Block a user