summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2026-04-10 23:03:09 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-06-19 13:21:49 +0200
commit555973cf587c925733f79a8d520ed1b2701468cc (patch)
tree496b728a49c7db07aa589e19702c0fdc3b79de0b
parent05d6909835caa630a98f25d8c92f820ebf20c1fd (diff)
downloadlinux-555973cf587c925733f79a8d520ed1b2701468cc.tar.gz
linux-555973cf587c925733f79a8d520ed1b2701468cc.zip
media: rc: ttusbir: fix inverted error logic
commit 646ebdd3105809d84ed04aa9e92e47e89cc44502 upstream. We have to report ENOMEM if no buffer is allocated. Typo dropped a "!". Restore it. Fixes: 50acaad3d202 ("media: rc: ttusbir: respect DMA coherency rules") Cc: stable@vger.kernel.org Signed-off-by: Oliver Neukum <oneukum@suse.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/media/rc/ttusbir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/ttusbir.c b/drivers/media/rc/ttusbir.c
index 91907c0262bd..f429316bb423 100644
--- a/drivers/media/rc/ttusbir.c
+++ b/drivers/media/rc/ttusbir.c
@@ -193,7 +193,7 @@ static int ttusbir_probe(struct usb_interface *intf,
tt = kzalloc(sizeof(*tt), GFP_KERNEL);
buffer = kzalloc(5, GFP_KERNEL);
rc = rc_allocate_device(RC_DRIVER_IR_RAW);
- if (!tt || !rc || buffer) {
+ if (!tt || !rc || !buffer) {
ret = -ENOMEM;
goto out;
}