On Mon, Jul 27, 2015 at 09:41:10PM -0700, Joshua Clayton wrote:
> 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 <stillcompil...@gmail.com>
> ---
<snip>
>  
>  u8 *r8712_get_capability_from_ie(u8 *ie)
> -- 
> 2.4.6
> 
> From: Joshua Clayton <stillcompil...@gmail.com>
> To: Larry Finger <larry.fin...@lwfinger.net>,
>       Florian Schilhabel <florian.c.schilha...@googlemail.com>,
>       Greg Kroah-Hartman <gre...@linuxfoundation.org>,
>       Sudip Mukherjee <sudipm.mukher...@gmail.com>,
>       Nitin Kuppelur <nitinkuppe...@gmail.com>,
>       Joshua Clayton <stillcompil...@gmail.com>,
>       Vaishali Thakkar <vthakkar1...@gmail.com>,
>       Tapasweni Pathak <tapaswenipat...@gmail.com>,
>       Daniel Baluta <daniel.bal...@intel.com>,
>       Melike Yurtoglu <aysemelikeyurto...@gmail.com>,
>       Max Perepelitsyn <mperepelit...@gmail.com>,
>       Aya Mahfouz <mahfouz.saif.elya...@gmail.com>,
>       Cristina Opriceana <cristina.oprice...@gmail.com>,
>       Dogukan Ergun <dogukan.er...@gmail.com>,
>       Julia Lawall <julia.law...@lip6.fr>,
>       Dan Carpenter <dan.carpen...@oracle.com>,
>       Haneen Mohammed <hamohammed...@gmail.com>,
>       Rickard Strandqvist <rickard_strandqv...@spectrumdigital.se>
> Cc: de...@driverdev.osuosl.org,
>       linux-ker...@vger.kernel.org
> Subject: [PATCH V3 1/8] staging: rtl8712: fix buggy size calculation
> Date: Mon, 27 Jul 2015 21:41:10 -0700
> Message-Id: 
> <305999598d7738feabdc8e5df5400b3e7be7f5ed.1438057939.git.stillcompil...@gmail.com>
> X-Mailer: git-send-email 2.4.6
> In-Reply-To: <cover.1438057939.git.stillcompil...@gmail.com>
> References: <cover.1438057939.git.stillcompil...@gmail.com>
> In-Reply-To: <cover.1438057939.git.stillcompil...@gmail.com>
> References: <cover.1438057939.git.stillcompil...@gmail.com>

Something is wrong. The same patch is getting repeated in the same mail
multiple times. I deleted almost 2500 lines after this before sending
this reply. See how your patch is looking like:
http://www.gossamer-threads.com/lists/linux/kernel/2224869

regards
sudip

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to