staging: dgnc: missing NULL check for ioremap in dgnc_do_remap()
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 26 Sep 2016 00:40:58 +0000 (09:40 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 11:12:25 +0000 (13:12 +0200)
commitb09f0cd53f83f937a4e8b58298dbba981b72428b
tree2ebd29075e7547b527d08680eb149eb56223f07d
parentf530834ef4d99ed2c6d8cb435a739a2a8167574a
staging: dgnc: missing NULL check for ioremap in dgnc_do_remap()

The ioremap() function can be failed, so it need to have error
handling in dgnc_do_remap(). And also the return type of
dgnc_do_remap() should be changed from "void" to "int"

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.c