summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-07-19 10:51:59 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-07-19 10:51:59 +0000
commitedc672741dadbc85403aa883c4abe46584067e7b (patch)
tree63c8c31a765859d758d58deefb6244a901ec724d /sys/dev
parent8f6883dd6e82eade5a202fd10147ed1ac323d55d (diff)
drm/i915/display: Do not zero past infoframes.vsc
From Kees Cook 3f9c2a058e61b8df9fef196ad6180fbf9932ed80 in linux 5.10.y/5.10.51 07b72960d2b4a087ff2445e286159e69742069cc in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/i915/display/intel_dp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/display/intel_dp.c b/sys/dev/pci/drm/i915/display/intel_dp.c
index 6beb5d14656..7f2727c077a 100644
--- a/sys/dev/pci/drm/i915/display/intel_dp.c
+++ b/sys/dev/pci/drm/i915/display/intel_dp.c
@@ -5080,7 +5080,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;