From: Joshua Clayton Date: Thu, 6 Aug 2015 00:17:14 +0000 (-0700) Subject: staging: rtl8712: fix buggy size calculation X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~173 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dab10f444774dd119e3c370cd332df9c1c646c7;p=pandora-kernel.git staging: rtl8712: fix buggy size calculation r8712_get_ndis_wlan_bssid_ex_sz has a "6 * sizeof(unsigned long)" where the underlying struct has a 6 * unsigned char. Simplify the calculation by just subtracting the variable part from the size of the struct. This also gets rid of a use of typedef NDIS_802_11_RATES_EX Signed-off-by: Joshua Clayton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed