summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorKarol Herbst <kherbst@redhat.com>2023-08-14 17:49:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-23 18:52:42 +0300
commit3f27451c9f29d5ed00232968680c7838a44dcac7 (patch)
tree04cb5ceedb47ea16b748c47d00651b75a1d0cd9f /net
parent790c2f9d15b594350ae9bca7b236f2b1859de02c (diff)
downloadlinux-3f27451c9f29d5ed00232968680c7838a44dcac7.tar.xz
drm/nouveau/disp: fix use-after-free in error handling of nouveau_connector_create
commit 1b254b791d7b7dea6e8adc887fbbd51746d8bb27 upstream. We can't simply free the connector after calling drm_connector_init on it. We need to clean up the drm side first. It might not fix all regressions from commit 2b5d1c29f6c4 ("drm/nouveau/disp: PIOR DP uses GPIO for HPD, not PMGR AUX interrupts"), but at least it fixes a memory corruption in error handling related to that commit. Link: https://lore.kernel.org/lkml/20230806213107.GFZNARG6moWpFuSJ9W@fat_crate.local/ Fixes: 95983aea8003 ("drm/nouveau/disp: add connector class") Signed-off-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Lyude Paul <lyude@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230814144933.3956959-1-kherbst@redhat.com Signed-off-by: Karol Herbst <kherbst@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions