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

staging: rtl8723au: Fix alignment of mac_addr for ether_addr_copy() usage

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>

authored by

Jes Sorensen and committed by
Greg Kroah-Hartman
30e89958 4a2bc3bd

+1 -1
+1 -1
drivers/staging/rtl8723au/include/rtw_eeprom.h
··· 107 107 }; 108 108 109 109 struct eeprom_priv { 110 + u8 mac_addr[6]; /* PermanentAddress */ 110 111 u8 bautoload_fail_flag; 111 112 u8 bloadfile_fail_flag; 112 113 u8 bloadmac_fail_flag; 113 114 /* u8 bempty; */ 114 115 /* u8 sys_config; */ 115 - u8 mac_addr[6]; /* PermanentAddress */ 116 116 /* u8 config0; */ 117 117 u16 channel_plan; 118 118 /* u8 country_string[3]; */