]> git.baikalelectronics.ru Git - kernel.git/commit
xen/events: Check that IRQ value passed in is valid.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 16 Apr 2013 14:55:18 +0000 (10:55 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 16 Apr 2013 20:05:13 +0000 (16:05 -0400)
commit9a476359b35f346f7945f138a583d49e327cf684
treed546dec5591a34940ccc7cebdf5362f4ec8fe0db
parent788f659b92c7b33485a08d63860313c99b7c23b0
xen/events: Check that IRQ value passed in is valid.

We naively assume that the IRQ value passed in is correct.
If it is not, then any dereference operation for the 'info'
structure will result in crash - so might as well guard ourselves
and sprinkle copious amounts of WARN_ON.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/events.c