Re: [PATCH v3] ALSA: ymfpci: Handle return NULL error from ioremap_nocache

2017-01-25 Thread Takashi Iwai
On Tue, 24 Jan 2017 06:31:26 +0100, Arvind Yadav wrote: > > Here, If ioremap_nocache will fail. It will return NULL. > Kernel can run into a NULL-pointer dereference. > This error check will avoid NULL pointer dereference. > > Signed-off-by: Arvind Yadav > --- > sound/pci/ymfpci/ymfpci_main.c |

[PATCH v3] ALSA: ymfpci: Handle return NULL error from ioremap_nocache

2017-01-23 Thread Arvind Yadav
Here, If ioremap_nocache will fail. It will return NULL. Kernel can run into a NULL-pointer dereference. This error check will avoid NULL pointer dereference. Signed-off-by: Arvind Yadav --- sound/pci/ymfpci/ymfpci_main.c | 4 1 file changed, 4 insertions(+) diff --git a/sound/pci/ymfpci/y