]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
uml: fix spurious IRQ testing
authorJeff Dike <jdike@addtoit.com>
Thu, 15 Nov 2007 01:00:23 +0000 (17:00 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 15 Nov 2007 02:45:43 +0000 (18:45 -0800)
commit9ac625a3986034d79938baf9604210280fae35fa
tree66c45bdd302027e77dec5df93ffa2e81543d6ca2
parent7c06a8dc64a2d1884bd19b4c6353d9267ae4e3e1
uml: fix spurious IRQ testing

The spurious IRQ testing in request_irq is mishandled in um_request_irq, which
sets the incoming file descriptors non-blocking only after request_irq
succeeds.  This results in the spurious irq calling read on a blocking
descriptor, and a hang.

Fixed by reversing the O_NONBLOCK setting and the request_irq call.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/kernel/irq.c