Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0f56683 authored by Wei Yongjun's avatar Wei Yongjun Committed by Daniel Vetter
Browse files

drm/mgag200: fix error return code in mgag200fb_create()



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

Fixes: aec9e129 ("drm/mgag200: Fix error handling paths in fbdev driver")
Signed-off-by: default avatarWei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1471273431-6753-1-git-send-email-weiyj.lk@gmail.com
parent ae4e46b1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -183,8 +183,10 @@ static int mgag200fb_create(struct drm_fb_helper *helper,
	}

	sysram = vmalloc(size);
	if (!sysram)
	if (!sysram) {
		ret = -ENOMEM;
		goto err_sysram;
	}

	info = drm_fb_helper_alloc_fbi(helper);
	if (IS_ERR(info)) {