diff options
author | Egbert Eich <eich@suse.de> | 2017-07-18 16:47:37 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-08-02 12:12:27 +1000 |
commit | f3b91060b5e4ae89fb7132b9e8e1958b829ddc22 (patch) | |
tree | db14c9ca4787615b596c538566d4d366992f12fd /drivers/gpu/drm/ast/ast_main.c | |
parent | 587b9b1a2a068c01fdf51003a7b6951761041d01 (diff) | |
download | blackbird-obmc-linux-f3b91060b5e4ae89fb7132b9e8e1958b829ddc22.tar.gz blackbird-obmc-linux-f3b91060b5e4ae89fb7132b9e8e1958b829ddc22.zip |
drm/ast: Free container instead of member in ast_user_framebuffer_destroy()
Technically freeing ast_fb->base is the same as freeing ast_fb as 'base'
the first member of the data structure.
Still this makes it cleaner.
Signed-off-by: Egbert Eich <eich@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/ast/ast_main.c')
-rw-r--r-- | drivers/gpu/drm/ast/ast_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_main.c b/drivers/gpu/drm/ast/ast_main.c index 262c2c0e43b4..50a8512ea646 100644 --- a/drivers/gpu/drm/ast/ast_main.c +++ b/drivers/gpu/drm/ast/ast_main.c @@ -389,7 +389,7 @@ static void ast_user_framebuffer_destroy(struct drm_framebuffer *fb) drm_gem_object_unreference_unlocked(ast_fb->obj); drm_framebuffer_cleanup(fb); - kfree(fb); + kfree(ast_fb); } static const struct drm_framebuffer_funcs ast_fb_funcs = { |