Skip to content

Commit b89ce11

Browse files
tititiou36danvet
authored andcommitted
drm/armada: Fix a potential double free in an error handling path
'priv' is a managed resource, so there is no need to free it explicitly or there will be a double free(). Fixes: 90ad200 ("drm/armada: Use devm_drm_dev_alloc") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/c4f3c9207a9fce35cb6dd2cc60e755275961588a.1640536364.git.christophe.jaillet@wanadoo.fr
1 parent 6fd33a3 commit b89ce11

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpu/drm/armada/armada_drv.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ static int armada_drm_bind(struct device *dev)
9999
if (ret) {
100100
dev_err(dev, "[" DRM_NAME ":%s] can't kick out simple-fb: %d\n",
101101
__func__, ret);
102-
kfree(priv);
103102
return ret;
104103
}
105104

0 commit comments

Comments
 (0)