aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common/ir-keytable.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/common/ir-keytable.c')
-rw-r--r--drivers/media/common/ir-keytable.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/common/ir-keytable.c b/drivers/media/common/ir-keytable.c
index 26ce5bc2fdd5..ceef0e82fb4b 100644
--- a/drivers/media/common/ir-keytable.c
+++ b/drivers/media/common/ir-keytable.c
@@ -419,6 +419,9 @@ void ir_input_free(struct input_dev *dev)
419{ 419{
420 struct ir_scancode_table *rc_tab = input_get_drvdata(dev); 420 struct ir_scancode_table *rc_tab = input_get_drvdata(dev);
421 421
422 if (!rc_tab)
423 return;
424
422 IR_dprintk(1, "Freed keycode table\n"); 425 IR_dprintk(1, "Freed keycode table\n");
423 426
424 rc_tab->size = 0; 427 rc_tab->size = 0;