Re: [PATCH v1] tty: serial: 8250: 8250_gsc:- Handle return NULL error from ioremap_nocache

2017-01-19 Thread Andy Shevchenko
On Thu, Jan 19, 2017 at 10:00 AM, 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. > uart.port.mapbase = address; >

Re: [PATCH v1] tty: serial: 8250: 8250_gsc:- Handle return NULL error from ioremap_nocache

2017-01-19 Thread Andy Shevchenko
On Thu, Jan 19, 2017 at 10:00 AM, 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. > uart.port.mapbase = address; > uart.port.membase

[PATCH v1] tty: serial: 8250: 8250_gsc:- Handle return NULL error from ioremap_nocache

2017-01-19 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/tty/serial/8250/8250_gsc.c | 4 1 file changed, 4 insertions(+)

[PATCH v1] tty: serial: 8250: 8250_gsc:- Handle return NULL error from ioremap_nocache

2017-01-19 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/tty/serial/8250/8250_gsc.c | 4 1 file changed, 4 insertions(+) diff --git