From 94479c017b58f69e2304d88c2826ba445cd4cd99 Mon Sep 17 00:00:00 2001 From: Jesper Nilsson Date: Thu, 28 Oct 2010 12:04:55 +0200 Subject: Add missing "struct" to in sizeof. Lead to a compile error when the struct was no longer typedef'd. Signed-off-by: Jesper Nilsson --- drivers/serial/crisv10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/crisv10.c b/drivers/serial/crisv10.c index c856905bb3bd..20402c604c10 100644 --- a/drivers/serial/crisv10.c +++ b/drivers/serial/crisv10.c @@ -3731,7 +3731,7 @@ rs_ioctl(struct tty_struct *tty, struct file * file, /* This is the ioctl to get RS485 data from user-space */ if (copy_to_user((struct serial_rs485 *) arg, rs485data, - sizeof(serial_rs485))) + sizeof(struct serial_rs485))) return -EFAULT; break; } -- cgit v1.2.3