]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
Add missing "struct" to in sizeof.
authorJesper Nilsson <jespern@axis.com>
Thu, 28 Oct 2010 10:04:55 +0000 (12:04 +0200)
committerJesper Nilsson <jespern@axis.com>
Thu, 28 Oct 2010 10:13:26 +0000 (12:13 +0200)
Lead to a compile error when the struct was no longer typedef'd.

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
drivers/serial/crisv10.c

index c856905bb3bdfc3105ac5eff30de5aad2160c265..20402c604c10fc0a887a1803979f888f1139405c 100644 (file)
@@ -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;
        }