Re: [PATCH] sgi-gru: fix null pointer dereference on failed kzalloc

2015-05-20 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich On Wed, May 13, 2015 at 09:19:46AM +0100, Colin King wrote: > From: Colin Ian King > > static analysis from smatch found a potential null dereference: > > drivers/misc/sgi-gru/grutlbpurge.c:320 gru_register_mmu_notifier() error: > potential null dereference 'gms'.

Re: [PATCH] sgi-gru: fix null pointer dereference on failed kzalloc

2015-05-20 Thread Dimitri Sivanich
Acked-by: Dimitri Sivanich sivan...@sgi.com On Wed, May 13, 2015 at 09:19:46AM +0100, Colin King wrote: From: Colin Ian King colin.k...@canonical.com static analysis from smatch found a potential null dereference: drivers/misc/sgi-gru/grutlbpurge.c:320 gru_register_mmu_notifier() error:

[PATCH] sgi-gru: fix null pointer dereference on failed kzalloc

2015-05-13 Thread Colin King
From: Colin Ian King static analysis from smatch found a potential null dereference: drivers/misc/sgi-gru/grutlbpurge.c:320 gru_register_mmu_notifier() error: potential null dereference 'gms'. (kzalloc returns null) bail out with -ENOMEM rather than falling through and printing a debug

[PATCH] sgi-gru: fix null pointer dereference on failed kzalloc

2015-05-13 Thread Colin King
From: Colin Ian King colin.k...@canonical.com static analysis from smatch found a potential null dereference: drivers/misc/sgi-gru/grutlbpurge.c:320 gru_register_mmu_notifier() error: potential null dereference 'gms'. (kzalloc returns null) bail out with -ENOMEM rather than falling through