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: <CAHo-OowjXKjiqvCiYitBU=sEefi7QN45D5MBs1=gzwQN9dF7sg@mail.gmail.com>
Date:	Tue, 27 Mar 2012 11:06:39 -0700
From:	Maciej Żenczykowski <zenczykowski@...il.com>
To:	Dmitry Kravkov <dmitry@...adcom.com>
Cc:	davem@...emloft.net, netdev@...r.kernel.org, eilong@...adcom.com
Subject: Re: [PATCH net] bnx2x: fix vector traveling while looking for an
 empty entry

Ack.

On Tue, Mar 27, 2012 at 00:08, Dmitry Kravkov <dmitry@...adcom.com> wrote:
> Fixes the bug that may prevent from mac to be configured,
> while there is an empty slot for it.
>
> Reported-by: Maciej Żenczykowski <zenczykowski@...il.com>
> Signed-off-by: Dmitry Kravkov <dmitry@...adcom.com>
> ---
>  drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
> index 3f52fad..5135733 100644
> --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
> +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
> @@ -3847,7 +3847,7 @@ static bool bnx2x_credit_pool_get_entry(
>                        continue;
>
>                /* If we've got here we are going to find a free entry */
> -               for (idx = vec * BNX2X_POOL_VEC_SIZE, i = 0;
> +               for (idx = vec * BIT_VEC64_ELEM_SZ, i = 0;
>                      i < BIT_VEC64_ELEM_SZ; idx++, i++)
>
>                        if (BIT_VEC64_TEST_BIT(o->pool_mirror, idx)) {
> --
> 1.7.7.2
>
>
--
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