staging: vme_user: fix kmalloc style
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>
Fri, 26 Jun 2015 20:39:39 +0000 (23:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jul 2015 05:50:14 +0000 (22:50 -0700)
Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme/devices/vme_user.c

index 2ff15f08177687e0ade46de8c7871989e9b7b46e..3467cde5ac6c0810304797741a7bcf98bec3a36c 100644 (file)
@@ -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;