lguest: Make sure interrupt is allocated ok by lguest_setup_irq
authorStratos Psomadakis <psomas@cslab.ece.ntua.gr>
Thu, 12 Jan 2012 05:14:47 +0000 (15:44 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jan 2012 05:14:47 +0000 (15:44 +1030)
commitb6c96c0214138186f495e3ee73737c6fc5e4efa2
tree991ed5cd8c219543fb32f2b919556d5634859c90
parent07fe9977b6234ede1bd29e10e0323e478860c871
lguest: Make sure interrupt is allocated ok by lguest_setup_irq

Make sure the interrupt is allocated correctly by lguest_setup_irq (check the
return value of irq_alloc_desc_at for -ENOMEM)

Signed-off-by: Stratos Psomadakis <psomas@cslab.ece.ntua.gr>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (cleanups and commentry)
arch/x86/lguest/boot.c
drivers/lguest/lguest_device.c