diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2017-02-09 15:19:07 +0000 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-02-14 21:14:39 +0100 |
commit | cd57b48a4a33faa57f147623beee193759e69ba6 (patch) | |
tree | 05fa43c10927f006a40a581aa0d8f2a21519a6ac /drivers/gpu/drm/msm/dsi | |
parent | 5721a3808fcdf6f23e5a6b8338e76e468d7bac4f (diff) | |
download | op-kernel-dev-cd57b48a4a33faa57f147623beee193759e69ba6.zip op-kernel-dev-cd57b48a4a33faa57f147623beee193759e69ba6.tar.gz |
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
Diffstat (limited to 'drivers/gpu/drm/msm/dsi')
-rw-r--r-- | drivers/gpu/drm/msm/dsi/dsi_host.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 3819fde..c96e270 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi/dsi_host.c @@ -1743,6 +1743,7 @@ int msm_dsi_host_init(struct msm_dsi *msm_dsi) msm_host->rx_buf = devm_kzalloc(&pdev->dev, SZ_4K, GFP_KERNEL); if (!msm_host->rx_buf) { + ret = -ENOMEM; pr_err("%s: alloc rx temp buf failed\n", __func__); goto fail; } |