sparc32, leon: Check for existent irq_map entry in leon_handle_ext_irq
authorAndreas Larsson <andreas@gaisler.com>
Tue, 30 Oct 2012 00:09:46 +0000 (00:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Nov 2012 00:30:50 +0000 (16:30 -0800)
commit20424d85f8a07090fd32c6fad343f91b63c730b0
tree20a92b00fb42b3f848cbf3ab38d97967db5a0eb8
parent5cf8f7db8274f68b180ad277dbb0308e72b66efd
sparc32, leon: Check for existent irq_map entry in leon_handle_ext_irq

If an irq is being unlinked concurrently with leon_handle_ext_irq,
irq_map[eirq] might be null in leon_handle_ext_irq. Make sure that
this is not dereferenced.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/leon_kernel.c