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] [thread-next>] [day] [month] [year] [list]
Message-ID: <BLUPR0701MB1572B0FC50ED940FC6ED559891CC0@BLUPR0701MB1572.namprd07.prod.outlook.com>
Date:	Thu, 14 Jan 2016 18:22:29 +0000
From:	Konstantin Shkolnyy <Konstantin.Shkolnyy@...abs.com>
To:	Martyn Welch <martyn.welch@...labora.co.uk>,
	Konstantin Shkolnyy <konstantin.shkolnyy@...il.com>,
	"johan@...nel.org" <johan@...nel.org>
CC:	"linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH v3 2/4] USB: serial: cp210x: Switch to new 16-bit register
 access functions.

> -----Original Message-----
> From: linux-usb-owner@...r.kernel.org [mailto:linux-usb-
> owner@...r.kernel.org] On Behalf Of Martyn Welch
> Sent: Thursday, January 14, 2016 11:44
> To: Konstantin Shkolnyy; johan@...nel.org
> Cc: linux-usb@...r.kernel.org; linux-kernel@...r.kernel.org
> Subject: Re: [PATCH v3 2/4] USB: serial: cp210x: Switch to new 16-bit register
> access functions.
...

> > @@ -697,14 +685,11 @@ static unsigned int
> cp210x_quantise_baudrate(unsigned int baud)
> >
> >   static int cp210x_open(struct tty_struct *tty, struct usb_serial_port *port)
> >   {
> > -	int result;
> > +	int err;
> >
> > -	result = cp210x_set_config_single(port, CP210X_IFC_ENABLE,
> > -
> 	UART_ENABLE);
> > -	if (result) {
> > -		dev_err(&port->dev, "%s - Unable to enable UART\n",
> __func__);
> > -		return result;
> > -	}
> > +	err = cp210x_write_u16_reg(port, CP210X_IFC_ENABLE,
> UART_ENABLE);
> > +	if (err)
> > +		return err;
> 
> Any reason for dropping the error message?

I already print a message if the underlying usb_control_msg fails, so it should be covered there.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ