diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-12-26 17:34:16 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-20 12:10:26 +0200 |
commit | 4a519731ece83d0884fa12595206f1d12f7fe4e5 (patch) | |
tree | 5b56e4c04b9f6f52460edd9ef56ffeafd65c0971 | |
parent | a069d4d98cd271a70b561cb757485efe5f5e5a7e (diff) | |
download | linux-stable-4a519731ece83d0884fa12595206f1d12f7fe4e5.tar.gz linux-stable-4a519731ece83d0884fa12595206f1d12f7fe4e5.tar.bz2 linux-stable-4a519731ece83d0884fa12595206f1d12f7fe4e5.zip |
drm/armada: Fix a potential double free in an error handling path
[ Upstream commit b89ce1177d42d5c124e83f3858818cd4e6a2c46f ]
'priv' is a managed resource, so there is no need to free it explicitly or
there will be a double free().
Fixes: 90ad200b4cbc ("drm/armada: Use devm_drm_dev_alloc")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/c4f3c9207a9fce35cb6dd2cc60e755275961588a.1640536364.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/gpu/drm/armada/armada_drv.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/armada/armada_drv.c b/drivers/gpu/drm/armada/armada_drv.c index 980d3f1f8f16..2d1e1e48f0ee 100644 --- a/drivers/gpu/drm/armada/armada_drv.c +++ b/drivers/gpu/drm/armada/armada_drv.c @@ -102,7 +102,6 @@ static int armada_drm_bind(struct device *dev) if (ret) { dev_err(dev, "[" DRM_NAME ":%s] can't kick out simple-fb: %d\n", __func__, ret); - kfree(priv); return ret; } |