Home
last modified time | relevance | path

Searched hist:"4 dcd19bf" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/video/fbdev/
H A Dcobalt_lcdfb.c4dcd19bf Tue Dec 13 02:20:52 CST 2016 Arvind Yadav <arvind.yadav.cs@gmail.com> video: fbdev: cobalt_lcdfb: Handle return NULL error from devm_ioremap

Here, If devm_ioremap 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>
Acked-by: Yoichi Yuasa <yuasa@linux-mips.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
4dcd19bf Tue Dec 13 02:20:52 CST 2016 Arvind Yadav <arvind.yadav.cs@gmail.com> video: fbdev: cobalt_lcdfb: Handle return NULL error from devm_ioremap

Here, If devm_ioremap 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>
Acked-by: Yoichi Yuasa <yuasa@linux-mips.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>