video: fbdev: stifb: handle NULL return value from ioremap_nocache
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Mon, 30 Jan 2017 16:39:49 +0000 (17:39 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Mon, 30 Jan 2017 16:39:49 +0000 (17:39 +0100)
commit74a2b96e61d78051c70c24ad4499e0c8dcd1a0f1
tree3c048b868e56745f354aaa96ab106e62498c3ad7
parentf998ff681c0628c8da700a15975b4a57ec0ce707
video: fbdev: stifb: handle NULL return value from ioremap_nocache

Add missing error check for ioremap_nocache() failure
(prevents NULL pointer dereference on error).

Cc: "James E.J. Bottomley" <jejb@parisc-linux.org>
Cc: Helge Deller <deller@gmx.de>
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
[b.zolnierkie: minor fixes]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/stifb.c