drm/rockchip: vop: fixup error handle on crtc register

Change-Id: I969a3994360331f4ce66e7affcc9ed3869599777
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
This commit is contained in:
Mark Yao
2017-08-14 09:54:34 +08:00
parent 2169a9db46
commit 2ab91f190d

View File

@@ -2843,7 +2843,7 @@ static int vop_create_crtc(struct vop *vop)
vop->lut = devm_kmalloc_array(dev, lut_len, sizeof(*vop->lut),
GFP_KERNEL);
if (!vop->lut)
return -ENOMEM;
goto err_unregister_crtc_funcs;
r_base = crtc->gamma_store;
g_base = r_base + crtc->gamma_size;