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>] [day] [month] [year] [list]
Message-ID: <20170601145211.gbvkqfzm6ytypzcu@mwanda>
Date:   Thu, 1 Jun 2017 17:52:11 +0300
From:   Dan Carpenter <dan.carpenter@...cle.com>
To:     ? ? <incarnation.p.lee@...look.com>
Cc:     "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
        "linux@...ck-us.net" <linux@...ck-us.net>,
        "yueyao.zhu@...il.com" <yueyao.zhu@...il.com>,
        "devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>,
        "o_leveque@...nge.fr" <o_leveque@...nge.fr>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 3/3] staging: typec: Fix one defect of incorrect type
 assignment.

On Thu, Jun 01, 2017 at 07:21:38AM +0000, ? ? wrote:
> From: Pan Li <incarnation.p.lee@...look.com>
> 
>     Convert type cpu to le16 for consistent type assignment.
> 
> Signed-off-by: Pan Li <incarnation.p.lee@...look.com>
> ---
>  drivers/staging/typec/tcpci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/typec/tcpci.c b/drivers/staging/typec/tcpci.c
> index 18d2e06..dac41f2 100644
> --- a/drivers/staging/typec/tcpci.c
> +++ b/drivers/staging/typec/tcpci.c
> @@ -390,7 +390,7 @@ static irqreturn_t tcpci_irq(int irq, void *dev_id)
>  		regmap_read(tcpci->regmap, TCPC_RX_BYTE_CNT, &cnt);
>  
>  		tcpci_read16(tcpci, TCPC_RX_HDR, &reg);
> -		msg.header = reg;
> +		msg.header = cpu_to_le16(reg);

This looks like you introduced a bug.  We surely read le values?
Please be more careful.

regards,
dan carpenter


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ