diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2020-03-23 15:49:09 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2020-03-26 15:18:11 +0100 |
commit | ea3aa6203c6b5540c80527d6beae68063a0080c1 (patch) | |
tree | 09e54741f863da5b88150f0f514787a1dc78b09a /drivers/gpu/drm/tidss | |
parent | b6097727ae57dc782900e5955ac03c5d6158b28d (diff) |
drm/v3d: Use drmm_add_final_kfree
With this we can drop the final kfree from the release function.
I also noticed that the unwind code is wrong, after drm_dev_init the
drm_device owns the v3d allocation, so the kfree(v3d) is a double-free.
Reorder the setup to fix this issue.
After a bit more prep in drivers and drm core v3d should be able to
switch over to devm_drm_dev_init, which should clean this up further.
Acked-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20200323144950.3018436-11-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm/tidss')
0 files changed, 0 insertions, 0 deletions