diff options
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/ab8500-debugfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c index fe8189c4385a..e33e385af0a2 100644 --- a/drivers/mfd/ab8500-debugfs.c +++ b/drivers/mfd/ab8500-debugfs.c | |||
@@ -2804,6 +2804,9 @@ static ssize_t ab8500_subscribe_write(struct file *file, | |||
2804 | return -ENOMEM; | 2804 | return -ENOMEM; |
2805 | 2805 | ||
2806 | event_name[irq_index] = kmalloc(count, GFP_KERNEL); | 2806 | event_name[irq_index] = kmalloc(count, GFP_KERNEL); |
2807 | if (!event_name[irq_index]) | ||
2808 | return -ENOMEM; | ||
2809 | |||
2807 | sprintf(event_name[irq_index], "%lu", user_val); | 2810 | sprintf(event_name[irq_index], "%lu", user_val); |
2808 | dev_attr[irq_index]->show = show_irq; | 2811 | dev_attr[irq_index]->show = show_irq; |
2809 | dev_attr[irq_index]->store = NULL; | 2812 | dev_attr[irq_index]->store = NULL; |