drm/msm/dsi: fix error return code in msm_dsi_host_init()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 9 Feb 2017 15:19:07 +0000 (15:19 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 Feb 2017 20:14:39 +0000 (21:14 +0100)
commitcd57b48a4a33faa57f147623beee193759e69ba6
tree05fa43c10927f006a40a581aa0d8f2a21519a6ac
parent5721a3808fcdf6f23e5a6b8338e76e468d7bac4f
drm/msm/dsi: fix error return code in msm_dsi_host_init()

Fix to return error code -ENOMEM from the malloc error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170209151907.28800-1-weiyj.lk@gmail.com
drivers/gpu/drm/msm/dsi/dsi_host.c