summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/rtl819x_TS.h
diff options
context:
space:
mode:
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>2015-05-31 20:19:21 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-01 06:31:59 +0900
commit06c111072892d3f5fed9d73d1becb59d3f33410b (patch)
treec51bdb395bfbbf740bae4512c0354816d47680ce /drivers/staging/rtl8192e/rtl819x_TS.h
parentc7ddc288ebf2aee890828cec26b4fb889a246330 (diff)
downloadlinux-06c111072892d3f5fed9d73d1becb59d3f33410b.tar.bz2
staging: rtl8192e: Make ethernet addresses properly aligned
Reorder ethernet addresses allocated on stack or in non-packed structures to keep them aligned(2). Use ETH_ALEN as array length in places where it was hardcoded to 6. Alignment verified using pahole where possible and target-tested with BUG_ON() trap in ether_addr_copy. Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e/rtl819x_TS.h')
-rw-r--r--drivers/staging/rtl8192e/rtl819x_TS.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192e/rtl819x_TS.h b/drivers/staging/rtl8192e/rtl819x_TS.h
index 8601b1ad217d..b3e721bf975c 100644
--- a/drivers/staging/rtl8192e/rtl819x_TS.h
+++ b/drivers/staging/rtl8192e/rtl819x_TS.h
@@ -35,7 +35,7 @@ struct ts_common_info {
struct list_head List;
struct timer_list SetupTimer;
struct timer_list InactTimer;
- u8 Addr[6];
+ u8 Addr[ETH_ALEN];
union tspec_body TSpec;
union qos_tclas TClass[TCLAS_NUM];
u8 TClasProc;