]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dsi: Fix return value check in msm_dsi_host_set_display_mode()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 18 Jun 2016 17:26:37 +0000 (17:26 +0000)
committerRob Clark <robdclark@gmail.com>
Sat, 16 Jul 2016 14:29:28 +0000 (10:29 -0400)
commita330d13f5c79cf2245ee2c130116534151a97773
tree172be60ec0015c227885d0ac45968073b23c7927
parentdb3f79a05054e0df5895b4b3ac7dad5ccb9542b6
drm/msm/dsi: Fix return value check in msm_dsi_host_set_display_mode()

In case of error, the function drm_mode_duplicate() 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>
Reviewed-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/dsi/dsi_host.c