Commit 088b4154 authored by David S. Miller's avatar David S. Miller Committed by Linus Torvalds

[SPARC64]: Fix memset() in sunsu.c and sunzilog.c

sizeof(ptr) --> sizeof(*ptr)
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ecd84435
......@@ -1309,7 +1309,7 @@ static int __init sunsu_kbd_ms_init(struct uart_sunsu_port *up, int channel)
#ifdef CONFIG_SERIO
up->serio = serio = kmalloc(sizeof(struct serio), GFP_KERNEL);
if (serio) {
memset(serio, 0, sizeof(serio));
memset(serio, 0, sizeof(*serio));
serio->port_data = up;
......
......@@ -1556,8 +1556,7 @@ static void __init sunzilog_register_serio(struct uart_sunzilog_port *up, int ch
up->serio = serio = kmalloc(sizeof(struct serio), GFP_KERNEL);
if (serio) {
memset(serio, 0, sizeof(serio));
memset(serio, 0, sizeof(*serio));
serio->port_data = up;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment