Re: [PATCH v1] edac: i82975x_edac :- Handle return NULL error from ioremap_nocache

2017-01-16 Thread Borislav Petkov
On Mon, Jan 16, 2017 at 12:14:52PM +0530, 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 > --- > drivers/edac/i82975x_edac.c |

[PATCH v1] edac: i82975x_edac :- Handle return NULL error from ioremap_nocache

2017-01-15 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 --- drivers/edac/i82975x_edac.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/edac/i82975x_