diff options
| author | Thomas Zimmermann <[email protected]> | 2023-03-16 10:37:36 +0100 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-03-31 11:18:42 -0400 |
| commit | 3a745f6ac13216f85c3804654f4c703995c17180 (patch) | |
| tree | ef87abb450abb7d8ef47f4723f3716bd1a68cf2d /tools/perf/scripts/python/stackcollapse.py | |
| parent | 62bb839d48ae87d6aa07259ff6bc8d049538d1f2 (diff) | |
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 <[email protected]>
Signed-off-by: Thomas Zimmermann <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions