Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1131
b: refs/heads/master
c: 8f33228
h: refs/heads/master
i:
  1129: 0d2d34b
  1127: 31245b5
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed May 17, 2005
1 parent 1944ff7 commit 0d97ceb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02048817a70ad04dda5b30ad876c42a232229c99
refs/heads/master: 8f332287bc3f2801ba43682fd79baf24dc8ac1ce
10 changes: 8 additions & 2 deletions trunk/arch/um/kernel/irq_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,15 @@ static void free_irq_by_cb(int (*test)(struct irq_fd *, void *), void *arg)
(*prev)->fd, pollfds[i].fd);
goto out;
}
memcpy(&pollfds[i], &pollfds[i + 1],
(pollfds_num - i - 1) * sizeof(pollfds[0]));

pollfds_num--;

/* This moves the *whole* array after pollfds[i] (though
* it doesn't spot as such)! */

memmove(&pollfds[i], &pollfds[i + 1],
(pollfds_num - i) * sizeof(pollfds[0]));

if(last_irq_ptr == &old_fd->next)
last_irq_ptr = prev;
*prev = (*prev)->next;
Expand Down

0 comments on commit 0d97ceb

Please sign in to comment.