]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/events: Add WARN_ON when quick lookup found invalid type.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 23 May 2012 17:28:44 +0000 (13:28 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 23 May 2012 18:21:06 +0000 (14:21 -0400)
commite19207c22bdec63057991a3820af84e818d87272
tree2624e4210e68e3da8a1f6692e9dfba7c2d390290
parentf12d32efc8338d6a405e8c7c763b9330c99f65a8
xen/events: Add WARN_ON when quick lookup found invalid type.

All of the bind_XYZ_to_irq do a quick lookup to see if the
event exists. And if they that value is returned instead of
initialized. This patch adds an extra logic to check that the
type returned is the proper one and we can use it to find
drivers that are doing something naught.

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