cec: update log_addr[] before finishing configuration
authorHans Verkuil <hansverk@cisco.com>
Fri, 9 Dec 2016 13:54:06 +0000 (11:54 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Nov 2017 08:39:15 +0000 (08:39 +0000)
commitfa6e02c62a616c8442e013c0df48a01be82d15a4
treec84dee685b8c14db486c696b1b532e8f5feb04ac
parentf635fd7de9a5bbf9aaafdb8002e7a0f32cfca587
cec: update log_addr[] before finishing configuration

[ Upstream commit 7af26f889eb67db272021a939f7d4a57e96dd961 ]

The loop that sets the unused logical addresses to INVALID should be
done before 'configured' is set to true. This ensures that cec_log_addrs
is consistent before it will be used.

Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/cec/cec-adap.c