diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2023-03-16 12:37:36 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-03-31 18:18:42 +0300 |
commit | 3a745f6ac13216f85c3804654f4c703995c17180 (patch) | |
tree | ef87abb450abb7d8ef47f4723f3716bd1a68cf2d /drivers/gpu/drm/radeon/radeon_drv.h | |
parent | 62bb839d48ae87d6aa07259ff6bc8d049538d1f2 (diff) | |
download | linux-3a745f6ac13216f85c3804654f4c703995c17180.tar.xz |
drm/radeon: Correctly clean up failed display probing
Improve the fbdev probing function to fully clean up if it failed.
Allows to remove special cases from fb_destroy as well.
This change is reorders the operations within radeonfb_probe(). It
first allocates a buffer object, then builds a DRM framebuffer for
the object and finally creates the fbdev device. If every step
succeeded, the probe function clears the framebuffer memory. This
is the optimal order to rollback any changes if any of the steps
fails.
No functional changes.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_drv.h')
0 files changed, 0 insertions, 0 deletions