提交 1f0622de 编写于 作者: D Dmitry Kalinkin 提交者: Greg Kroah-Hartman

staging: vme_user: fix kmalloc style

Signed-off-by: NDmitry Kalinkin <dmitry.kalinkin@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 f99b71be
......@@ -526,7 +526,7 @@ static int vme_user_master_mmap(unsigned int minor, struct vm_area_struct *vma)
return err;
}
vma_priv = kmalloc(sizeof(struct vme_user_vma_priv), GFP_KERNEL);
vma_priv = kmalloc(sizeof(*vma_priv), GFP_KERNEL);
if (!vma_priv) {
mutex_unlock(&image[minor].mutex);
return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册