drm/ast: Fix memleak in error path in ast_bo_create()
authorEgbert Eich <eich@suse.de>
Tue, 18 Jul 2017 14:47:38 +0000 (16:47 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Aug 2017 02:12:31 +0000 (12:12 +1000)
commitb2d44e23818a72ded7b8e9a08d46d532f0148465
tree51bd8c67c80c0159031d4517702759f386fc86ac
parentf3b91060b5e4ae89fb7132b9e8e1958b829ddc22
drm/ast: Fix memleak in error path in ast_bo_create()

The allocated struct ast_bo was not freed in all error paths.
This patch consolidates error handling and fixes this.

Signed-off-by: Egbert Eich <eich@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ast/ast_ttm.c