diff options
author | Dave Airlie <airlied@redhat.com> | 2014-02-19 08:21:26 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-02-19 08:21:26 +1000 |
commit | 75936c65dda54a08d9124f24f8725f86a4adc286 (patch) | |
tree | 39e1a39f984bf450ee37a1ded6113d0b998b3a6d /drivers/gpu | |
parent | 9830e44f560de2f9f9453bb7f0eb2979b36ed139 (diff) | |
parent | 7a444d1f0b557c68f847050b33713ae7b56f25e7 (diff) |
Merge tag 'ttm-fixes-3.14-2014-02-18' of git://people.freedesktop.org/~thomash/linux into drm-fixes
Pull request of 2014-02-18
One compile fix and one memory leak.
* tag 'ttm-fixes-3.14-2014-02-18' of git://people.freedesktop.org/~thomash/linux:
drm/ttm: Fix memory leak in ttm_agp_backend.c
drm/ttm: declare 'struct device' in ttm_page_alloc.h
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_agp_backend.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_agp_backend.c b/drivers/gpu/drm/ttm/ttm_agp_backend.c index 3302f99e749..764be36397f 100644 --- a/drivers/gpu/drm/ttm/ttm_agp_backend.c +++ b/drivers/gpu/drm/ttm/ttm_agp_backend.c @@ -126,6 +126,7 @@ struct ttm_tt *ttm_agp_tt_create(struct ttm_bo_device *bdev, agp_be->ttm.func = &ttm_agp_func; if (ttm_tt_init(&agp_be->ttm, bdev, size, page_flags, dummy_read_page)) { + kfree(agp_be); return NULL; } |