Skip to content

Commit 3328443

Browse files
fifteenhexalexdeucher
authored andcommitted
drm/radeon: Do not kfree() devres managed rdev
Since the allocation of the drivers main structure was changed to devm_drm_dev_alloc() rdev is managed by devres and we shouldn't be calling kfree() on it. This fixes things exploding if the driver probe fails and devres cleans up the rdev after we already free'd it. Fixes: a9ed2f0 ("drm/radeon: change drm_dev_alloc to devm_drm_dev_alloc") Signed-off-by: Daniel Palmer <daniel@0x0f.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 16c0681)
1 parent ba10f8d commit 3328443

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/gpu/drm/radeon/radeon_kms.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ void radeon_driver_unload_kms(struct drm_device *dev)
8484
rdev->agp = NULL;
8585

8686
done_free:
87-
kfree(rdev);
8887
dev->dev_private = NULL;
8988
}
9089

0 commit comments

Comments
 (0)