mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
staging: vme_user: fix kmalloc style
Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f99b71be37
commit
1f0622de0d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue