]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0bc5c2dafc0d0e5f2abf07f6e0f5625391263d92
tree51bd8c67c80c0159031d4517702759f386fc86ac
parent457f7cce39f037681c86ab415e843a2f4a527bc6
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