|
@@ -79,7 +79,7 @@ skip:
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-struct irq_fd *active_fds = NULL;
|
|
|
|
|
|
+static struct irq_fd *active_fds = NULL;
|
|
static struct irq_fd **last_irq_ptr = &active_fds;
|
|
static struct irq_fd **last_irq_ptr = &active_fds;
|
|
|
|
|
|
extern void free_irqs(void);
|
|
extern void free_irqs(void);
|
|
@@ -124,8 +124,8 @@ int activate_fd(int irq, int fd, int type, void *dev_id)
|
|
if (err < 0)
|
|
if (err < 0)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
- new_fd = um_kmalloc(sizeof(*new_fd));
|
|
|
|
err = -ENOMEM;
|
|
err = -ENOMEM;
|
|
|
|
+ new_fd = kmalloc(sizeof(struct irq_fd), GFP_KERNEL);
|
|
if (new_fd == NULL)
|
|
if (new_fd == NULL)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
@@ -176,9 +176,8 @@ int activate_fd(int irq, int fd, int type, void *dev_id)
|
|
*/
|
|
*/
|
|
spin_unlock_irqrestore(&irq_lock, flags);
|
|
spin_unlock_irqrestore(&irq_lock, flags);
|
|
kfree(tmp_pfd);
|
|
kfree(tmp_pfd);
|
|
- tmp_pfd = NULL;
|
|
|
|
|
|
|
|
- tmp_pfd = um_kmalloc(n);
|
|
|
|
|
|
+ tmp_pfd = kmalloc(n, GFP_KERNEL);
|
|
if (tmp_pfd == NULL)
|
|
if (tmp_pfd == NULL)
|
|
goto out_kfree;
|
|
goto out_kfree;
|
|
|
|
|