]> git.baikalelectronics.ru Git - kernel.git/commit
drm: sti: hda: fix return value check in sti_hda_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 26 Aug 2014 10:23:52 +0000 (12:23 +0200)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Tue, 26 Aug 2014 12:16:46 +0000 (14:16 +0200)
commit45e6d70e21ee807dfbb930693cfb0f3e082c4c4b
treef48b395cbe30973e5790575f567681692bd2a02b
parent0914e14cba1f938b9b5026402732cbf0084f07bf
drm: sti: hda: fix return value check in sti_hda_probe()

In case of error, the function devm_ioremap_nocache() returns NULL
pointer not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
drivers/gpu/drm/sti/sti_hda.c