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, 25 Mar 2014 23:47:39 +0100
From:	Mathieu Maret <mathieu.maret@...il.com>
To:	Joe Perches <joe@...ches.com>
Cc:	linux-kernel@...r.kernel.org, arve@...roid.com,
	gregkh@...uxfoundation.org
Subject: Re: [PATCH 2/2] staging: binder: Code simplification

Joe Perches wrote:
> On Tue, 2014-03-25 at 23:03 +0100, Mathieu Maret wrote:
> > Remove duplicate code
> []
> > diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c
> []
> > @@ -2685,11 +2685,9 @@ static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
> >  		break;
> >  	case BINDER_VERSION: {
> >  		struct binder_version __user *ver = ubuf;
> > -		if (size != sizeof(struct binder_version)) {
> > -			ret = -EINVAL;
> > -			goto err;
> > -		}
> > -		if (put_user(BINDER_CURRENT_PROTOCOL_VERSION,
> > +
> > +		if (size != sizeof(struct binder_version) ||
> > +			put_user(BINDER_CURRENT_PROTOCOL_VERSION,
> >  			&ver->protocol_version)) {
> 
> When you do this, please align continuations at the appropriate
> open parenthesis using maximal initial tabs and minimal spaces
> for alignment.
> 
> 		if (size != sizeof(struct binder_version) ||
> 		    put_user(BINDER_CURRENT_PROTOCOL_VERSION,
> 			     &ver->protocol_version)) {
> 
> 2 tabs then 4 spaces then "put_user"
> 3 tabs then 5 spaces then "&ver->"
> 
> using scripts/checkpatch.pl --strict should alert you to this.
> 
> And, either don't submit this until after 3.15-rc1 is out
> and Greg KH starts taking patches again, or expect to be
> very patient about getting any update on this.
>

Joe,

Thanks for your help and tips.
--strict is now on my todo list !

See you after 3.15-rc1


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ