gfx: drv: Do not kfree() pvr buffer's page list
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 15 Feb 2012 13:02:05 +0000 (15:02 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 3 Jul 2012 09:29:47 +0000 (12:29 +0300)
psb_get_pages_by_mem_handle() doesn't allocate a new page list. Instead
it simply returns a reference to the pvr buffer's page list. Do not
kfree() said list in the caller.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
drivers/staging/mrst/drv/psb_gtt.c

index 207ef1f..2afe4fd 100644 (file)
@@ -884,7 +884,6 @@ int psb_gtt_map_meminfo(struct drm_device *dev,
 failed_add_node:
        psb_gtt_mm_free_mem(mm, node);
 failed_pages_alloc:
-       kfree(page_list);
        return ret;
 }