From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754865AbbG1LrJ (ORCPT ); Tue, 28 Jul 2015 07:47:09 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:34907 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752431AbbG1LrG (ORCPT ); Tue, 28 Jul 2015 07:47:06 -0400 Date: Tue, 28 Jul 2015 17:16:56 +0530 From: Sudip Mukherjee To: Joshua Clayton Cc: Larry Finger , Florian Schilhabel , Greg Kroah-Hartman , Nitin Kuppelur , Vaishali Thakkar , Tapasweni Pathak , Daniel Baluta , Melike Yurtoglu , Max Perepelitsyn , Aya Mahfouz , Cristina Opriceana , Dogukan Ergun , Julia Lawall , Dan Carpenter , Haneen Mohammed , Rickard Strandqvist , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3 1/8] staging: rtl8712: fix buggy size calculation Message-ID: <20150728114656.GF15027@sudip-pc> References: <305999598d7738feabdc8e5df5400b3e7be7f5ed.1438057939.git.stillcompiling@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <305999598d7738feabdc8e5df5400b3e7be7f5ed.1438057939.git.stillcompiling@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > > u8 *r8712_get_capability_from_ie(u8 *ie) > -- > 2.4.6 > > From: Joshua Clayton > To: Larry Finger , > Florian Schilhabel , > Greg Kroah-Hartman , > Sudip Mukherjee , > Nitin Kuppelur , > Joshua Clayton , > Vaishali Thakkar , > Tapasweni Pathak , > Daniel Baluta , > Melike Yurtoglu , > Max Perepelitsyn , > Aya Mahfouz , > Cristina Opriceana , > Dogukan Ergun , > Julia Lawall , > Dan Carpenter , > Haneen Mohammed , > Rickard Strandqvist > Cc: devel@driverdev.osuosl.org, > linux-kernel@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.stillcompiling@gmail.com> > X-Mailer: git-send-email 2.4.6 > In-Reply-To: > References: > In-Reply-To: > References: 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