Commit b8d4b69b authored by Christophe JAILLET's avatar Christophe JAILLET Committed by sanglipeng
Browse files

drm/armada: Fix a potential double free in an error handling path

stable inclusion
from stable-v5.10.178
commit 4a519731ece83d0884fa12595206f1d12f7fe4e5
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8D927

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4a519731ece83d0884fa12595206f1d12f7fe4e5



--------------------------------

[ Upstream commit b89ce117 ]

'priv' is a managed resource, so there is no need to free it explicitly or
there will be a double free().

Fixes: 90ad200b ("drm/armada: Use devm_drm_dev_alloc")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/c4f3c9207a9fce35cb6dd2cc60e755275961588a.1640536364.git.christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 80c5bd7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment