Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'pm-sleep'

* pm-sleep:
PM / wakeirq: check that wake IRQ is valid before accepting it

+6
+6
drivers/base/power/wakeirq.c
··· 68 68 struct wake_irq *wirq; 69 69 int err; 70 70 71 + if (irq < 0) 72 + return -EINVAL; 73 + 71 74 wirq = kzalloc(sizeof(*wirq), GFP_KERNEL); 72 75 if (!wirq) 73 76 return -ENOMEM; ··· 169 166 { 170 167 struct wake_irq *wirq; 171 168 int err; 169 + 170 + if (irq < 0) 171 + return -EINVAL; 172 172 173 173 wirq = kzalloc(sizeof(*wirq), GFP_KERNEL); 174 174 if (!wirq)