mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-12 06:01:58 +00:00
drm/dp_mst: fix multiple frees of tx->bytes
[ Upstream commit2c8bc91488] Currently tx->bytes is being freed r->num_transactions number of times because tx is not being set correctly. Fix this by setting tx to &r->transactions[i] so that the correct objects are being freed on each loop iteration. Addresses-Coverity: ("Double free") Fixes:2f015ec6ea("drm/dp_mst: Add sideband down request tracing + selftests") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Lyude Paul <lyude@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191120173509.347490-1-colin.king@canonical.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
5d3eb3d8e5
commit
47a84a554a
1 changed files with 3 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue