From: Dmitry Kalinkin Date: Fri, 26 Jun 2015 20:39:39 +0000 (+0300) Subject: staging: vme_user: fix kmalloc style X-Git-Tag: v4.3-rc1~158^2~585 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1f0622de0d1fb7de187c7cf729971d56def7814e;p=karo-tx-linux.git staging: vme_user: fix kmalloc style Signed-off-by: Dmitry Kalinkin Signed-off-by: Greg Kroah-Hartman --- 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;