mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
Merge branch 'fix/misc' into for-linus
* fix/misc: ALSA: sound/aoa: Add kmalloc NULL tests
This commit is contained in:
commit
d62e345f14
1 changed files with 4 additions and 0 deletions
|
@ -182,6 +182,10 @@ static int pmf_set_notify(struct gpio_runtime *rt,
|
|||
if (!old && notify) {
|
||||
irq_client = kzalloc(sizeof(struct pmf_irq_client),
|
||||
GFP_KERNEL);
|
||||
if (!irq_client) {
|
||||
err = -ENOMEM;
|
||||
goto out_unlock;
|
||||
}
|
||||
irq_client->data = notif;
|
||||
irq_client->handler = pmf_handle_notify_irq;
|
||||
irq_client->owner = THIS_MODULE;
|
||||
|
|
Loading…
Reference in a new issue