lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 19 Dec 2017 21:02:00 +0100
From:   Martin Homuth <martin@...tinhomuth.de>
To:     Joe Perches <joe@...ches.com>, alex.mikhalevich@...il.com,
        rvarsha016@...il.com, devel@...verdev.osuosl.org,
        linux-kernel@...r.kernel.org, gregkh@...uxfoundation.org
Subject: Re: [PATCH v3 2/5] staging: rtl8712: style fix multiple line
 dereferences

On 12/19/2017 05:41 PM, Joe Perches wrote:
> On Tue, 2017-12-19 at 17:32 +0100, Martin Homuth wrote:
>> This patch fixes various coding style issues in the rtl8712 module as
>> noted by checkpatch.pl related to dereferencing over multiple lines.
> []
>> diff --git a/drivers/staging/rtl8712/rtl8712_recv.c b/drivers/staging/rtl8712/rtl8712_recv.c
> []
>> @@ -899,6 +899,7 @@ static void process_link_qual(struct _adapter *padapter,
>>  {
>>  	u32	last_evm = 0, tmpVal;
>>  	struct rx_pkt_attrib *pattrib;
>> +	struct smooth_rssi_data *sqd = &padapter->recvpriv.signal_qual_data;
>>  
>>  	if (prframe == NULL || padapter == NULL)
>>  		return;
>> @@ -918,9 +919,7 @@ static void process_link_qual(struct _adapter *padapter,
>>  		}
>>  		padapter->recvpriv.signal_qual_data.total_val +=
>>  			  pattrib->signal_qual;
> 
> You missed more than one substitution.
> 
> 		sqd->total_val += pattrib->signal_qual;
> 
>> -		padapter->recvpriv.signal_qual_data.elements[padapter->
>> -			  recvpriv.signal_qual_data.index++] =
>> -			  pattrib->signal_qual;
>> +		sqd->elements[sqd->index++] = pattrib->signal_qual;
>>  		if (padapter->recvpriv.signal_qual_data.index >=
>>  		    PHY_LINKQUALITY_SLID_WIN_MAX)
>>  			padapter->recvpriv.signal_qual_data.index = 0;
> 
> And here too
> 
> 			sqd->index = 0;
> 
> Dunno if there are more, but if you are
> modifying the function, you should do the
> appropriate function local sed.
> 

Of course! For some reason I figured further changes within that
function would break the original reason for the change (as the other
changes wouldn't fix checkpatch errors) but it totally makes sense.
Sorry for the noise, v4 will contain the final fixes regarding this matter.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ