提交 09bf4a85 编写于 作者: M Mauro Carvalho Chehab

Revert "[media] v4l: vb2-memops: use vma slab when vma allocation"

Please revert this patch: vm_area_cachep is not exported, so you cannot use
this in a module.

This reverts commit 5ed1c328.
Reported-by: NHans Verkuil <hverkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 882302c8
...@@ -37,7 +37,7 @@ struct vm_area_struct *vb2_get_vma(struct vm_area_struct *vma) ...@@ -37,7 +37,7 @@ struct vm_area_struct *vb2_get_vma(struct vm_area_struct *vma)
{ {
struct vm_area_struct *vma_copy; 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) if (vma_copy == NULL)
return NULL; return NULL;
...@@ -75,7 +75,7 @@ void vb2_put_vma(struct vm_area_struct *vma) ...@@ -75,7 +75,7 @@ void vb2_put_vma(struct vm_area_struct *vma)
if (vma->vm_file) if (vma->vm_file)
fput(vma->vm_file); fput(vma->vm_file);
kmem_cache_free(vm_area_cachep, vma); kfree(vma);
} }
EXPORT_SYMBOL_GPL(vb2_put_vma); EXPORT_SYMBOL_GPL(vb2_put_vma);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册