summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vme
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2015-06-26 23:39:39 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-14 22:50:14 -0700
commit1f0622de0d1fb7de187c7cf729971d56def7814e (patch)
tree1d70799dc9f7ad20f722e611eb13cc07987a9c52 /drivers/staging/vme
parentf99b71be37dd88e7b2f4a7c227da6c4f71cd8fa4 (diff)
downloadlinux-1f0622de0d1fb7de187c7cf729971d56def7814e.tar.gz
linux-1f0622de0d1fb7de187c7cf729971d56def7814e.tar.bz2
linux-1f0622de0d1fb7de187c7cf729971d56def7814e.zip
staging: vme_user: fix kmalloc style
Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vme')
-rw-r--r--drivers/staging/vme/devices/vme_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vme/devices/vme_user.c b/drivers/staging/vme/devices/vme_user.c
index 2ff15f081776..3467cde5ac6c 100644
--- a/drivers/staging/vme/devices/vme_user.c
+++ b/drivers/staging/vme/devices/vme_user.c
@@ -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;