Skip to content

Commit 94479c0

Browse files
author
Jesper Nilsson
committed
Add missing "struct" to in sizeof.
Lead to a compile error when the struct was no longer typedef'd. Signed-off-by: Jesper Nilsson <[email protected]>
1 parent b515316 commit 94479c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/serial/crisv10.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3731,7 +3731,7 @@ rs_ioctl(struct tty_struct *tty, struct file * file,
37313731
/* This is the ioctl to get RS485 data from user-space */
37323732
if (copy_to_user((struct serial_rs485 *) arg,
37333733
rs485data,
3734-
sizeof(serial_rs485)))
3734+
sizeof(struct serial_rs485)))
37353735
return -EFAULT;
37363736
break;
37373737
}

0 commit comments

Comments
 (0)