author: Kees Cook <keescook@chromium.org> 2021-06-17 14:33:01 -0700
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-19 10:04:50 +0200
commit: 970aa4aefaab2d7fcceeccc3ff6b3f40b66f36e7
parent: b4772d4e8ec373be3dcc931fa29516cd4c0f451d
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 642c60f3d9b1..005510f309cf 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -2850,7 +2850,7 @@ static int intel_dp_vsc_sdp_unpack(struct drm_dp_vsc_sdp *vsc,
if (size < sizeof(struct dp_sdp))
return -EINVAL;
- memset(vsc, 0, size);
+ memset(vsc, 0, sizeof(*vsc));
if (sdp->sdp_header.HB0 != 0)
return -EINVAL;