Skip to content

Commit

Permalink
staging: rtl8723au: Fix alignment of mac_addr for ether_addr_copy() u…
Browse files Browse the repository at this point in the history
…sage

Make sure struct eeprom_priv->mac_addr is 2 byte aligned to work with
ether_addr_copy()

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jes Sorensen authored and Greg Kroah-Hartman committed Oct 20, 2014
1 parent ab608c2 commit 54d5c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8723au/include/rtw_eeprom.h
Original file line number Diff line number Diff line change
@@ -107,12 +107,12 @@ enum rt_customer_id
};

struct eeprom_priv {
u8 mac_addr[6]; /* PermanentAddress */
u8 bautoload_fail_flag;
u8 bloadfile_fail_flag;
u8 bloadmac_fail_flag;
/* u8 bempty; */
/* u8 sys_config; */
u8 mac_addr[6]; /* PermanentAddress */
/* u8 config0; */
u16 channel_plan;
/* u8 country_string[3]; */

0 comments on commit 54d5c5c

Please sign in to comment.