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;
>
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
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(+)
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
4 matches
Mail list logo