summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2020-06-13 13:52:59 +0000
committerjsg <jsg@openbsd.org>2020-06-13 13:52:59 +0000
commite633609233ea8feddc0ca1bb813a76e11aeaa673 (patch)
treeb03ca2a8e7e9fdcc5f38fd6d44848d0ab8d379b2
parentLoad CTF section to enable DDB's "show struct" (diff)
downloadwireguard-openbsd-e633609233ea8feddc0ca1bb813a76e11aeaa673.tar.xz
wireguard-openbsd-e633609233ea8feddc0ca1bb813a76e11aeaa673.zip
correct a krealloc conversion
-rw-r--r--sys/dev/pci/drm/i915/gt/intel_lrc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/gt/intel_lrc.c b/sys/dev/pci/drm/i915/gt/intel_lrc.c
index 7b720422ead..4b1de5337bf 100644
--- a/sys/dev/pci/drm/i915/gt/intel_lrc.c
+++ b/sys/dev/pci/drm/i915/gt/intel_lrc.c
@@ -5345,7 +5345,7 @@ int intel_virtual_engine_attach_bond(struct intel_engine_cs *engine,
if (!bond)
return -ENOMEM;
- memcpy(bond, ve->bonds, sizeof(*bond) * (ve->num_bonds + 1));
+ memcpy(bond, ve->bonds, sizeof(*bond) * ve->num_bonds);
kfree(ve->bonds);
#endif