diff options
author | Hangyu Hua <hbh25y@gmail.com> | 2022-06-24 16:04:06 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-07-21 22:20:04 +0300 |
commit | 592f3bad00b7e2a95a6fb7a4f9e742c061c9c3c1 (patch) | |
tree | 6ee5e747c428fb764869d148e26938c7cabd98c1 /security | |
parent | 4cb5c1950b7ad37f57ced2bea8c5b4bcb755b61a (diff) | |
download | linux-592f3bad00b7e2a95a6fb7a4f9e742c061c9c3c1.tar.xz |
drm/i915: fix a possible refcount leak in intel_dp_add_mst_connector()
[ Upstream commit 85144df9ff4652816448369de76897c57cbb1b93 ]
If drm_connector_init fails, intel_connector_free will be called to take
care of proper free. So it is necessary to drop the refcount of port
before intel_connector_free.
Fixes: 091a4f91942a ("drm/i915: Handle drm-layer errors in intel_dp_add_mst_connector")
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220624130406.17996-1-jose.souza@intel.com
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
(cherry picked from commit cea9ed611e85d36a05db52b6457bf584b7d969e2)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions