diff options
author | Sean Young <sean@mess.org> | 2021-07-03 15:37:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-22 11:48:00 +0200 |
commit | 59d1566f7b5ccb457fca5841157f2a9e10d4da43 (patch) | |
tree | 5143bd63b873251251dcc030b283b26ddf789d85 /drivers/media/rc | |
parent | a6bc08a6af42d789e7b13fcf83f221def6743780 (diff) | |
download | linux-stable-59d1566f7b5ccb457fca5841157f2a9e10d4da43.tar.gz linux-stable-59d1566f7b5ccb457fca5841157f2a9e10d4da43.tar.bz2 linux-stable-59d1566f7b5ccb457fca5841157f2a9e10d4da43.zip |
media: rc-loopback: return number of emitters rather than error
commit 6b7f554be8c92319d7e6df92fd247ebb9beb4a45 upstream.
The LIRC_SET_TRANSMITTER_MASK ioctl should return the number of emitters
if an invalid list was set.
Cc: stable@vger.kernel.org
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r-- | drivers/media/rc/rc-loopback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/rc-loopback.c b/drivers/media/rc/rc-loopback.c index 3822d9ebcb46..5abbde7e5d5b 100644 --- a/drivers/media/rc/rc-loopback.c +++ b/drivers/media/rc/rc-loopback.c @@ -52,7 +52,7 @@ static int loop_set_tx_mask(struct rc_dev *dev, u32 mask) if ((mask & (RXMASK_REGULAR | RXMASK_LEARNING)) != mask) { dprintk("invalid tx mask: %u\n", mask); - return -EINVAL; + return 2; } dprintk("setting tx mask: %u\n", mask); |