Skip to content

Commit 4bf5d3d

Browse files
committed
Merge tag 'media/v7.1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull media fix from Mauro Carvalho Chehab: "Fix inverted error logic in ttusbir driver" * tag 'media/v7.1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: media: rc: ttusbir: fix inverted error logic
2 parents 5dfa01e + 646ebdd commit 4bf5d3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/media/rc/ttusbir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static int ttusbir_probe(struct usb_interface *intf,
191191
tt = kzalloc_obj(*tt);
192192
buffer = kzalloc(5, GFP_KERNEL);
193193
rc = rc_allocate_device(RC_DRIVER_IR_RAW);
194-
if (!tt || !rc || buffer) {
194+
if (!tt || !rc || !buffer) {
195195
ret = -ENOMEM;
196196
goto out;
197197
}

0 commit comments

Comments
 (0)