diff options
-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 a0afa64b471b..fe8189c4385a 100644 --- a/drivers/mfd/ab8500-debugfs.c +++ b/drivers/mfd/ab8500-debugfs.c | |||
@@ -2800,6 +2800,9 @@ static ssize_t ab8500_subscribe_write(struct file *file, | |||
2800 | */ | 2800 | */ |
2801 | dev_attr[irq_index] = kmalloc(sizeof(struct device_attribute), | 2801 | dev_attr[irq_index] = kmalloc(sizeof(struct device_attribute), |
2802 | GFP_KERNEL); | 2802 | GFP_KERNEL); |
2803 | if (!dev_attr[irq_index]) | ||
2804 | return -ENOMEM; | ||
2805 | |||
2803 | event_name[irq_index] = kmalloc(count, GFP_KERNEL); | 2806 | event_name[irq_index] = kmalloc(count, GFP_KERNEL); |
2804 | sprintf(event_name[irq_index], "%lu", user_val); | 2807 | sprintf(event_name[irq_index], "%lu", user_val); |
2805 | dev_attr[irq_index]->show = show_irq; | 2808 | dev_attr[irq_index]->show = show_irq; |