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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111024195602.GA3473@msilap.einon>
Date:	Mon, 24 Oct 2011 20:56:06 +0100
From:	Mark Einon <mark.einon@...il.com>
To:	Francois Romieu <romieu@...zoreil.com>
Cc:	Mark Einon <mark.einon@...il.com>, Greg KH <greg@...ah.com>,
	devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH staging 6/6] et131x: uncloak PCIe capabilities.

On Sun, Oct 23, 2011 at 07:12:14PM +0200, Francois Romieu wrote:
> FIXME: it should be possible to get rid of ET1310_PCI_L0L1LATENCY as well.
> 
> Signed-off-by: Francois Romieu <romieu@...zoreil.com>
> ---
>  drivers/staging/et131x/et131x.c |   53 ++++++++++++++++++++++----------------
>  1 files changed, 31 insertions(+), 22 deletions(-)
> 
> diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c
> index 79ca1d3..2a0b794 100644
> --- a/drivers/staging/et131x/et131x.c
> +++ b/drivers/staging/et131x/et131x.c
[...]
> -	if (et131x_init_eeprom(adapter) < 0)
> -		return -EIO;
> +	rc = et131x_init_eeprom(adapter);
> +	if (rc < 0)
> +		goto out;
>  
[...]
>  	}
>  	memcpy(adapter->addr, adapter->rom_addr, ETH_ALEN);
> -	return 0;
> +out:
> +	return rc;
> +err_out:
> +	rc = -EIO;
> +	goto out;
>  }

Hi Francois,

The PCIe changes are good, however I think using gotos here doesn't add anything as there's no difficult locking to navigate and makes the code harder to read.
both out: and err_out: are used to return an error, and the backwards jumping goto makes me a bit uncomfortable. Could you respin with just the PCIe changes?

Cheers,

Mark
--
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