On Fri Apr 10 23:03:09 2026 +0200, Oliver Neukum wrote:
> 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: [email protected]
> Signed-off-by: Oliver Neukum <[email protected]>
> Signed-off-by: Sean Young <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>

Patch committed.

Thanks,
Hans Verkuil

 drivers/media/rc/ttusbir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

diff --git a/drivers/media/rc/ttusbir.c b/drivers/media/rc/ttusbir.c
index 3848ad3a6b85..db2f6698a6c0 100644
--- a/drivers/media/rc/ttusbir.c
+++ b/drivers/media/rc/ttusbir.c
@@ -191,7 +191,7 @@ static int ttusbir_probe(struct usb_interface *intf,
        tt = kzalloc_obj(*tt);
        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;
        }
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to