Re: [PATCH 2/2] avoid dereference of null pointer

2013-11-10 Thread Samuel Thibault
Marin Ramesa, le Sun 10 Nov 2013 18:16:20 +0100, a écrit : > On 10.11.2013 16:53:39, Samuel Thibault wrote: > > Marin Ramesa, le Sun 10 Nov 2013 16:46:30 +0100, a écrit : > > > Check to see if pte is a null pointer and perform dereference only > > > if that is not the case. > > > > > > * i386/inte

Re: [PATCH 2/2] avoid dereference of null pointer

2013-11-10 Thread Marin Ramesa
On 10.11.2013 16:53:39, Samuel Thibault wrote: > Marin Ramesa, le Sun 10 Nov 2013 16:46:30 +0100, a écrit : > > Check to see if pte is a null pointer and perform dereference only > > if that is not the case. > > > > * i386/intel/pmap.c (pte): Check if it is a null pointer. > > Well, it can never

Re: [PATCH 2/2] avoid dereference of null pointer

2013-11-10 Thread Samuel Thibault
Marin Ramesa, le Sun 10 Nov 2013 16:46:30 +0100, a écrit : > Check to see if pte is a null pointer and perform dereference only > if that is not the case. > > * i386/intel/pmap.c (pte): Check if it is a null pointer. Well, it can never be null, since earlier in the code we see the pv_h pointing t

[PATCH 2/2] avoid dereference of null pointer

2013-11-10 Thread Marin Ramesa
Check to see if pte is a null pointer and perform dereference only if that is not the case. * i386/intel/pmap.c (pte): Check if it is a null pointer. --- i386/intel/pmap.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c index c1eca6