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] [day] [month] [year] [list]
Message-ID: <5190F249.9020309@cogentembedded.com>
Date:	Mon, 13 May 2013 18:01:45 +0400
From:	Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To:	Wei Yongjun <weiyj.lk@...il.com>
CC:	rmody@...cade.com, huangj@...cade.com, davem@...emloft.net,
	yongjun_wei@...ndmicro.com.cn, netdev@...r.kernel.org
Subject: Re: [PATCH] bna: add missing iounmap() on error in bnad_init()

Hello.

On 13-05-2013 11:26, Wei Yongjun wrote:

> From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>

> Add the missing iounmap() before return from bnad_init()
> in the error handling case.
> Introduced by commit 01b54b1451853593739816a392485c4e2bee7dda
> (bna: tx rx cleanup fix).

> Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
> ---
>   drivers/net/ethernet/brocade/bna/bnad.c | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)

> diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c
> index ce4a030..59da9eb 100644
> --- a/drivers/net/ethernet/brocade/bna/bnad.c
> +++ b/drivers/net/ethernet/brocade/bna/bnad.c
> @@ -3237,8 +3237,10 @@ bnad_init(struct bnad *bnad,
>   	sprintf(bnad->wq_name, "%s_wq_%d", BNAD_NAME, bnad->id);
>   	bnad->work_q = create_singlethread_workqueue(bnad->wq_name);
>

    Empty line not needed here -- maybe it's time to delete it?

> -	if (!bnad->work_q)
> +	if (!bnad->work_q) {
> +		iounmap(bnad->bar0);
>   		return -ENOMEM;
> +	}
>
>   	return 0;
>   }

WBR, Sergei


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