powerpc/iseries: Initialise on-stack completion
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 12 Jan 2010 21:10:56 +0000 (21:10 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 15 Jan 2010 02:26:14 +0000 (13:26 +1100)
commitb0ff153cd6228b2502e1c3ce5e226b82ae4e0679
treef555a751bcb94a1c5a4d1761966a9fa36c7fedde
parentaa8b83cb0b48e3cac58a3b75ad9c556564c5fe9d
powerpc/iseries: Initialise on-stack completion

get_viotape_info() declares a vio_waitevent on the stack, which
contains a completion, but never initialises the completion.

I have no idea how this ever worked, and on recent kernels it causes
an oops in handle_tape_event() when we access the non-initialised
completion.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/iseries/vio.c