]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: 8250: 8250_gsc:- Handle return NULL error from ioremap_nocache
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 19 Jan 2017 08:00:44 +0000 (13:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 13:20:23 +0000 (14:20 +0100)
commit3dc6843c8b854214cf48dfc39156394f6a9ba13f
treeeecf3cef1b71453cd6d04309839bfdccf50cfcbe
parent0d79e3756d520905f581eab34c455e09d8f00820
tty: serial: 8250: 8250_gsc:- Handle return NULL error from ioremap_nocache

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 <arvind.yadav.cs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_gsc.c