[CAN]: Fix plain integer definitions in userspace header.
authorOliver Hartkopp <oliver@hartkopp.net>
Fri, 28 Dec 2007 00:50:06 +0000 (16:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:54:12 +0000 (14:54 -0800)
This patch fixes the use of plain integers instead of __u32 in a struct
that is visible from kernel space and user space.

Thanks to Sam Ravnborg for pointing out the wrong plain int usage.

Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/can/bcm.h

index 7ade33a0ff03f0308f3ada2ac61995e0409ba809..7f293273c444a66101b7b66f9394c3c1c16b6bce 100644 (file)
  * @frames:    array of CAN frames.
  */
 struct bcm_msg_head {
-       int opcode;
-       int flags;
-       int count;
+       __u32 opcode;
+       __u32 flags;
+       __u32 count;
        struct timeval ival1, ival2;
        canid_t can_id;
-       int nframes;
+       __u32 nframes;
        struct can_frame frames[0];
 };