]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
Staging: slicoss: changes memory allocation style in slicoss.c
authorBen Marsh <bmarsh94@gmail.com>
Mon, 29 Feb 2016 11:37:34 +0000 (12:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
This is a patch to slicoss.c that changes the memory allocation style as
identified by checkpatch.pl

Signed-off-by: Ben Marsh <bmarsh94@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c

index 4a3123749a62b8f70ffff983128178fcfc966f4d..18dadccd98e1772cf3f3c0706cc9e51da1b579ac 100644 (file)
@@ -1793,7 +1793,7 @@ static int slic_mcast_add_list(struct adapter *adapter, char *address)
        }
 
        /* Doesn't already exist.  Allocate a structure to hold it */
-       mcaddr = kmalloc(sizeof(struct mcast_address), GFP_ATOMIC);
+       mcaddr = kmalloc(sizeof(*mcaddr), GFP_ATOMIC);
        if (mcaddr == NULL)
                return 1;