Skip to content

Commit

Permalink
Revert "[media] v4l: vb2-memops: use vma slab when vma allocation"
Browse files Browse the repository at this point in the history
Please revert this patch: vm_area_cachep is not exported, so you cannot use
this in a module.

This reverts commit 5ed1c32.

Reported-by: Hans Verkuil <hverkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
  • Loading branch information
Mauro Carvalho Chehab committed Apr 8, 2015
1 parent 882302c commit 09bf4a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/v4l2-core/videobuf2-memops.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct vm_area_struct *vb2_get_vma(struct vm_area_struct *vma)
{
struct vm_area_struct *vma_copy;

vma_copy = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL);
vma_copy = kmalloc(sizeof(*vma_copy), GFP_KERNEL);
if (vma_copy == NULL)
return NULL;

Expand Down Expand Up @@ -75,7 +75,7 @@ void vb2_put_vma(struct vm_area_struct *vma)
if (vma->vm_file)
fput(vma->vm_file);

kmem_cache_free(vm_area_cachep, vma);
kfree(vma);
}
EXPORT_SYMBOL_GPL(vb2_put_vma);

Expand Down

0 comments on commit 09bf4a8

Please sign in to comment.