[media] cec: return -EPERM when no LAs are configured
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 27 Feb 2017 12:18:35 +0000 (09:18 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 22 Mar 2017 14:11:46 +0000 (11:11 -0300)
commit059d1460cacb7e1ee499a02d92ac2b0b84d310fc
tree442911bd308be69e6b46eb14fc711d59aadb87fc
parent533a3f7bc7919f8f5462d6b921532cf1d1ccf6cd
[media] cec: return -EPERM when no LAs are configured

The CEC_TRANSMIT ioctl now returns -EPERM if an attempt is made to
transmit a message for an unconfigured adapter (i.e. userspace
never called CEC_ADAP_S_LOG_ADDRS).

This differentiates this case from when LAs are configured, but no
physical address is set. In that case -ENONET is returned.

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