lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 23 May 2020 11:49:07 +0800 From: chenxb_99091@....com To: David Airlie <airlied@...ux.ie> Cc: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org, Xuebing Chen <chenxb_99091@....com> Subject: [PATCH] drm: fix setting of plane_mask in pan_display_atomic() function for linux-4.4 From: Xuebing Chen <chenxb_99091@....com> The <include/drm/drm_crtc.h> provides drm_for_each_plane_mask macro and plane_mask is defined as bitmask of plane indices, such as 1<<drm_plane_index(plane). This patch fixes error setting of plane_mask in pan_display_atomic() function. Signed-off-by: Xuebing Chen <chenxb_99091@....com> --- drivers/gpu/drm/drm_fb_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index e449f22..6a9f7ee 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -1256,7 +1256,7 @@ retry: goto fail; plane = mode_set->crtc->primary; - plane_mask |= drm_plane_index(plane); + plane_mask |= 1 << drm_plane_index(plane); plane->old_fb = plane->fb; } -- 2.7.4
Powered by blists - more mailing lists