staging: rtl8723au: include/rtl8723a_hal.h: fix Rsvd1 size in fw header struct
authorDaniele Alessandrelli <daniele.alessandrelli@gmail.com>
Mon, 15 Jun 2015 18:44:20 +0000 (20:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Jun 2015 04:25:24 +0000 (21:25 -0700)
The size of field Rsvd1 in struct rt_8723a_firmware_hdr should be u8
otherwise we exceeds the boundaries of "LONG WORD 0". This patch fixes
the issue.

Signed-off-by: Daniele Alessandrelli <daniele.alessandrelli@gmail.com>
Acked-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/include/rtl8723a_hal.h

index 8ee301b..d40e420 100644 (file)
@@ -85,7 +85,7 @@ struct rt_8723a_firmware_hdr {
        u8              Function;       /*  Reserved for different FW function indcation, for further use when driver needs to download different FW in different conditions */
        u16             Version;                /*  FW Version */
        u8              Subversion;     /*  FW Subversion, default 0x00 */
-       u16             Rsvd1;
+       u             Rsvd1;
 
 
        /*  LONG WORD 1 ---- */