sparseirq: fix desc->lock init
authorIngo Molnar <mingo@elte.hu>
Fri, 26 Dec 2008 18:02:20 +0000 (19:02 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 27 Dec 2008 08:29:22 +0000 (09:29 +0100)
commit793f7b12a0c95e7bfec1badf9628043fb78fd440
tree1ace93d9f2bbed43b4594e6bacf75c51ffebf417
parent8b07cd44511f3aa78dd912cca6493275a6787dc5
sparseirq: fix desc->lock init

Impact: cleanup

init_one_irq_desc() does not initialize the desc->lock properly -
you cannot init a lock by memcpying some other lock on it.

This happens to work right now (because irq_desc_init is never in use),
but it's a dangerous construct nevertheless, so fix it.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/irq/handle.c
kernel/irq/numa_migrate.c