]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen/p2m/debugfs: Fix potential pointer exception.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 29 Sep 2011 17:09:34 +0000 (13:09 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 3 Oct 2011 16:33:21 +0000 (12:33 -0400)
commitc67b3964648b0c59a29345f5c1e19f46d73acdb4
tree2746fb1134778d7dfa5ae6b7e40cc2723f6a3d06
parentd27ad73a8aabab80d3da6c5133afca87c9a2ea0a
xen/p2m/debugfs: Fix potential pointer exception.

We could be referencing the last + 1 element of level_name[]
array which would cause a pointer exception, because of the
initial setup of lvl=4.

[v1: No need to do this for type_name, pointed out by Ian Campbell]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/p2m.c