]> git.baikalelectronics.ru Git - kernel.git/commit
media: cec: fix smatch error
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 7 Apr 2018 09:38:52 +0000 (05:38 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 17 Apr 2018 09:49:59 +0000 (05:49 -0400)
commit8856d795fdca528c54566eafc0f5320482dabcd1
treedaa7beb652666cf1a3724c4c6f667f54ece9ec5e
parente53f04bcc8cd71278ec2266eb59993be9ee8746d
media: cec: fix smatch error

drivers/media/cec/cec-pin-error-inj.c:231
cec_pin_error_inj_parse_line() error: uninitialized symbol 'pos'.

The tx-add-bytes command didn't check for the presence of an argument, and
also didn't check that it was > 0.

This should fix this error.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-pin-error-inj.c