Re: [PATCH] mm/migrate: check for null vma before dereferencing it

2017-04-11 Thread Andrew Morton
On Tue, 11 Apr 2017 22:31:12 +0100 Colin Ian King wrote: > On 11/04/17 22:26, Andrew Morton wrote: > > On Tue, 11 Apr 2017 13:51:02 +0100 Colin King > > wrote: > > > >> From: Colin Ian King > >> > >> check if vma is null before dereferencing it, this avoiding any > >> potential null pointer

Re: [PATCH] mm/migrate: check for null vma before dereferencing it

2017-04-11 Thread Colin Ian King
On 11/04/17 22:26, Andrew Morton wrote: > On Tue, 11 Apr 2017 13:51:02 +0100 Colin King > wrote: > >> From: Colin Ian King >> >> check if vma is null before dereferencing it, this avoiding any >> potential null pointer dereferences on vma via the is_vm_hugetlb_page >> call or the direct vma->vm

Re: [PATCH] mm/migrate: check for null vma before dereferencing it

2017-04-11 Thread Andrew Morton
On Tue, 11 Apr 2017 13:51:02 +0100 Colin King wrote: > From: Colin Ian King > > check if vma is null before dereferencing it, this avoiding any > potential null pointer dereferences on vma via the is_vm_hugetlb_page > call or the direct vma->vm_flags reference. > > Detected with CoverityScan,

[PATCH] mm/migrate: check for null vma before dereferencing it

2017-04-11 Thread Colin King
From: Colin Ian King check if vma is null before dereferencing it, this avoiding any potential null pointer dereferences on vma via the is_vm_hugetlb_page call or the direct vma->vm_flags reference. Detected with CoverityScan, CID#1427995 ("Dereference before null check") Signed-off-by: Colin I