Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1183dc94 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds
Browse files

[PATCH] uml: fix allocation size



Fix an instance of ptr=alloc(sizeof(ptr)).  Grepping showed no more instances
of this pattern.

Also fixed the formatting in the area.

Signed-off-by: default avatarJeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c1b4098d
Loading
Loading
Loading
Loading
+5 −4
Original line number Original line Diff line number Diff line
@@ -561,12 +561,13 @@ static int eth_setup(char *str)
	int n, err;
	int n, err;


	err = eth_parse(str, &n, &str);
	err = eth_parse(str, &n, &str);
	if(err) return(1);
	if(err)
		return 1;


	new = alloc_bootmem(sizeof(new));
	new = alloc_bootmem(sizeof(*new));
	if (new == NULL){
	if (new == NULL){
		printk("eth_init : alloc_bootmem failed\n");
		printk("eth_init : alloc_bootmem failed\n");
		return(1);
		return 1;
	}
	}


	INIT_LIST_HEAD(&new->list);
	INIT_LIST_HEAD(&new->list);
@@ -574,7 +575,7 @@ static int eth_setup(char *str)
	new->init = str;
	new->init = str;


	list_add_tail(&new->list, &eth_cmd_line);
	list_add_tail(&new->list, &eth_cmd_line);
	return(1);
	return 1;
}
}


__setup("eth", eth_setup);
__setup("eth", eth_setup);