From: Joe Jin Date: Fri, 7 Jan 2011 06:50:12 +0000 (+0800) Subject: xen/event: validate irq before get evtchn by irq X-Git-Tag: v2.6.38-rc1~434^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=110e7c7e4f8a61a34e0ab88fc9bdf4d5c6d220b2;p=pandora-kernel.git xen/event: validate irq before get evtchn by irq When retrieving the event channel number from irq, the irq number may not be valid under some conditions. So far that can be when we suspend/resume and irq ends with -1. Validate and return sanitized irq and provide diagnostics information. [v3: added unlikely on the WARN path] [v2: reworded the commit message] Signed-off-by: Joe Jin Signed-off-by: Konrad Rzeszutek Wilk Tested-by: Gurudas Pai Cc: Ian Campbell Cc: Jeremy Fitzhardinge Cc: Andrew Morton --- Reading git-diff-tree failed