Commit 1f0622de authored by Dmitry Kalinkin's avatar Dmitry Kalinkin Committed by Greg Kroah-Hartman

staging: vme_user: fix kmalloc style

Signed-off-by: default avatarDmitry Kalinkin <dmitry.kalinkin@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f99b71be
...@@ -526,7 +526,7 @@ static int vme_user_master_mmap(unsigned int minor, struct vm_area_struct *vma) ...@@ -526,7 +526,7 @@ static int vme_user_master_mmap(unsigned int minor, struct vm_area_struct *vma)
return err; return err;
} }
vma_priv = kmalloc(sizeof(struct vme_user_vma_priv), GFP_KERNEL); vma_priv = kmalloc(sizeof(*vma_priv), GFP_KERNEL);
if (!vma_priv) { if (!vma_priv) {
mutex_unlock(&image[minor].mutex); mutex_unlock(&image[minor].mutex);
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment