]> git.hungrycats.org Git - linux/commit
[PATCH] i8042 free_irq() aliasing fix
authorAndrew Morton <akpm@osdl.org>
Wed, 3 Sep 2003 18:13:39 +0000 (11:13 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 3 Sep 2003 18:13:39 +0000 (11:13 -0700)
commitf5fe7f061073dcc9e0166e1bb8c4f51998e31b64
treefc37048798c6885362698920a86b95b57fa50ffa
parent188f11a16d79a69832866ec7e8b850a9d1a8fae1
[PATCH] i8042 free_irq() aliasing fix

The same address `i8042_request_irq_cookie' is used in three places for the
i8042 request_irq() argument.  This means that if someone calls
i8042_check_mux() or i8042_check_aux() while the IRQ is in use, the
free_irq() call in there will free the wrong IRQ handler.

So give all three instances of request_irq() in i8042.c a distinct address by
which to identify the IRQ instance.

(This is probably a non-bug, because the `check' functions are not called
when the device is open, but it is better this way).
drivers/input/serio/i8042.c