Pārlūkot izejas kodu

Add missing "struct" to in sizeof.

Lead to a compile error when the struct was no longer typedef'd.

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
Jesper Nilsson 14 gadi atpakaļ
vecāks
revīzija
94479c017b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      drivers/serial/crisv10.c

+ 1 - 1
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;
 	}