]> www.infradead.org Git - users/jedix/linux-maple.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>
Wed, 19 Oct 2011 18:48:07 +0000 (14:48 -0400)
commitbbd61fb34cc0cdf4143f8b328a6e30c65628c6e5
tree39875733b3738894f7d113e54852b499dbbc52f7
parent666ca24d81b0e620498487215ba986e58577ec35
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