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]
Date:	Thu, 16 Sep 2010 16:15:36 -0400
From:	Chris Snook <chris.snook@...il.com>
To:	Luca Tettamanti <kronos.it@...il.com>
Cc:	netdev@...r.kernel.org, jcliburn@...il.com, jie.yang@...eros.com
Subject: Re: [PATCH 2/2] atl1: zero out CMB and SBM in atl1_free_ring_resources

On Thu, Sep 16, 2010 at 3:29 PM, Luca Tettamanti <kronos.it@...il.com> wrote:
> They are allocated in atl1_setup_ring_resources, zero out the pointers
> in atl1_free_ring_resources (like the other resources).
> ---
>  drivers/net/atlx/atl1.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/atlx/atl1.c b/drivers/net/atlx/atl1.c
> index bbd6e30..c73be28 100644
> --- a/drivers/net/atlx/atl1.c
> +++ b/drivers/net/atlx/atl1.c
> @@ -1251,6 +1251,12 @@ static void atl1_free_ring_resources(struct atl1_adapter *adapter)
>
>        rrd_ring->desc = NULL;
>        rrd_ring->dma = 0;
> +
> +       adapter->cmb.dma = 0;
> +       adapter->cmb.cmb = NULL;
> +
> +       adapter->smb.dma = 0;
> +       adapter->smb.smb = NULL;
>  }
>
>  static void atl1_setup_mac_ctrl(struct atl1_adapter *adapter)
> --
> 1.7.1
>
>

Acked-by: Chris Snook <chris.snook@...il.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ