Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[CAN]: Fix plain integer definitions in userspace header.

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>

authored by

Oliver Hartkopp and committed by
David S. Miller
4195e317 ccb29637

+4 -4
+4 -4
include/linux/can/bcm.h
··· 26 26 * @frames: array of CAN frames. 27 27 */ 28 28 struct bcm_msg_head { 29 - int opcode; 30 - int flags; 31 - int count; 29 + __u32 opcode; 30 + __u32 flags; 31 + __u32 count; 32 32 struct timeval ival1, ival2; 33 33 canid_t can_id; 34 - int nframes; 34 + __u32 nframes; 35 35 struct can_frame frames[0]; 36 36 }; 37 37