staging: r8188eu: ensure mac address buffer is properly aligned
authorMichael Straube <straube.linux@gmail.com>
Mon, 30 Aug 2021 12:15:02 +0000 (14:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Sep 2021 06:49:45 +0000 (08:49 +0200)
Ensure the mac address buffer in struct eeprom_priv is properly
aligned for use with functions from <linux/etherdevice.h>.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20210830121508.6411-3-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/rtw_eeprom.h

index 9f8a9c0..fb591a7 100644 (file)
@@ -99,7 +99,7 @@ struct eeprom_priv {
        u8              bautoload_fail_flag;
        u8              bloadfile_fail_flag;
        u8              bloadmac_fail_flag;
-       u8              mac_addr[6];    /* PermanentAddress */
+       u8              mac_addr[6] __aligned(2); /* PermanentAddress */
        u16             channel_plan;
        u8              EepromOrEfuse;
        u8              efuse_eeprom_data[HWSET_MAX_SIZE_512] __aligned(4);