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: <20171028.000810.246505527728273410.davem@davemloft.net>
Date:   Sat, 28 Oct 2017 00:08:10 +0900 (KST)
From:   David Miller <davem@...emloft.net>
To:     pkaustub@...co.com
Cc:     netdev@...r.kernel.org, gvaradar@...co.com, benve@...co.com
Subject: Re: [PATCH net-next 1/2] enic: reset fetch index

From: Parvi Kaustubhi <pkaustub@...co.com>
Date: Thu, 26 Oct 2017 09:30:04 -0700

> Since we are allowing rx ring size modification, reset fetch index
> everytime. Otherwise it could have a stale value that can lead to a null
> pointer dereference.
> 
> Signed-off-by: Govindarajulu Varadarajan <gvaradar@...co.com>
> Signed-off-by: Parvi Kaustubhi <pkaustub@...co.com>
> ---
>  drivers/net/ethernet/cisco/enic/vnic_rq.c | 14 ++------------
>  1 file changed, 2 insertions(+), 12 deletions(-)
> 
> diff --git a/drivers/net/ethernet/cisco/enic/vnic_rq.c b/drivers/net/ethernet/cisco/enic/vnic_rq.c
> index 36bc2c7..90537d9 100644
> --- a/drivers/net/ethernet/cisco/enic/vnic_rq.c
> +++ b/drivers/net/ethernet/cisco/enic/vnic_rq.c
> @@ -141,18 +141,8 @@ void vnic_rq_init(struct vnic_rq *rq, unsigned int cq_index,
>  {
>  	u32 fetch_index = 0;
>  

Please look at the build when you make changes:

drivers/net/ethernet/cisco/enic/vnic_rq.c: In function ‘vnic_rq_init’:
drivers/net/ethernet/cisco/enic/vnic_rq.c:142:6: warning: unused variable ‘fetch_index’ [-Wunused-variable]

Thank you.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ