Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ede67a30 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB: media: ir-keytable: null dereference in debug code



"ir_dev->props" can be NULL.  We only use raw mode if "ir_dev->props" is
non-NULL and "ir_dev->props->driver_type == RC_DRIVER_IR_RAW".

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f7b80e69
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -507,7 +507,8 @@ int __ir_input_register(struct input_dev *input_dev,

	IR_dprintk(1, "Registered input device on %s for %s remote%s.\n",
		   driver_name, rc_tab->name,
		   ir_dev->props->driver_type == RC_DRIVER_IR_RAW ? " in raw mode" : "");
		   (ir_dev->props && ir_dev->props->driver_type == RC_DRIVER_IR_RAW) ?
			" in raw mode" : "");

	return 0;