diff options
author | 2020-06-13 13:52:59 +0000 | |
---|---|---|
committer | 2020-06-13 13:52:59 +0000 | |
commit | e633609233ea8feddc0ca1bb813a76e11aeaa673 (patch) | |
tree | b03ca2a8e7e9fdcc5f38fd6d44848d0ab8d379b2 | |
parent | Load CTF section to enable DDB's "show struct" (diff) | |
download | wireguard-openbsd-e633609233ea8feddc0ca1bb813a76e11aeaa673.tar.xz wireguard-openbsd-e633609233ea8feddc0ca1bb813a76e11aeaa673.zip |
correct a krealloc conversion
-rw-r--r-- | sys/dev/pci/drm/i915/gt/intel_lrc.c | 2 |
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 |