]> git.baikalelectronics.ru Git - kernel.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 21:03:32 +0000 (17:03 -0400)
commitf6aaa9c13085a464011554687bd6474c514e8136
tree8a319093c106cbeb2017d0af8421c055a4851fd3
parent03f74e894c6f2b71be3352e05a1728e6a3385936
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