tools/xenalyze: Actually handle case where number of ipi vectors exceeds static max
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Thu, 25 Feb 2016 14:49:03 +0000 (14:49 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 29 Feb 2016 16:12:53 +0000 (11:12 -0500)
commit986d9fc3bbf8a6d9d088ca22d1422bd5de249396
tree58641572c6c138ce12f4d0d9f1ca2c128dbd6b62
parent1065622448c1cc5a10425914f02708750046b17e
tools/xenalyze: Actually handle case where number of ipi vectors exceeds static max

find_vec() is supposed to find the vector in the list if it exists,
choose an empty slot if it doesn't exist, and return null if all slots
are full.

However, coverity noticed that although the callers of find_vec() handle
the last condition, find_vec() itself didn't.

Check to see if we actually found an empty slot before attempting to
initialize it.

CID 1306864

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xentrace/xenalyze.c