From 370e677c29c59ad45f7aa3b914079966737e3d0c Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Wed, 24 Dec 2008 06:59:07 +0000 Subject: [PATCH] must pack structures for architectures like arm Reviewed by: thompsa --- sys/dev/usb/umass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c index 9ede619a8821..b0b73ccaa982 100644 --- a/sys/dev/usb/umass.c +++ b/sys/dev/usb/umass.c @@ -197,7 +197,7 @@ typedef struct { uByte bCDBLength; # define CBWCDBLENGTH 16 uByte CBWCDB[CBWCDBLENGTH]; -} umass_bbb_cbw_t; +} __packed umass_bbb_cbw_t; #define UMASS_BBB_CBW_SIZE 31 /* Command Status Wrapper */ @@ -212,7 +212,7 @@ typedef struct { # define CSWSTATUS_GOOD 0x0 # define CSWSTATUS_FAILED 0x1 # define CSWSTATUS_PHASE 0x2 -} umass_bbb_csw_t; +} __packed umass_bbb_csw_t; #define UMASS_BBB_CSW_SIZE 13 /* CBI features */