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] [day] [month] [year] [list]
Message-ID: <20120704073136.GB9863@dhcp-172-17-9-228.mtv.corp.google.com>
Date:	Wed, 4 Jul 2012 00:31:36 -0700
From:	Joel Becker <jlbec@...lplan.org>
To:	roel <roel.kluin@...il.com>
Cc:	Mark Fasheh <mfasheh@...e.com>,
	moderated for non-subscribers <ocfs2-devel@....oracle.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] ocfs2: Misplaced parens in unlikley

On Mon, Dec 12, 2011 at 11:40:51PM +0100, roel wrote:
> Fix misplaced parentheses
> 
> Signed-off-by: Roel Kluin <roel.kluin@...il.com>

This patch is now (finally) part of the 'fixes' branch of ocfs2.git.

Joel

> ---
>  fs/ocfs2/dlmglue.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
> index 81a4cd2..274529c 100644
> --- a/fs/ocfs2/dlmglue.c
> +++ b/fs/ocfs2/dlmglue.c
> @@ -456,7 +456,7 @@ static void ocfs2_update_lock_stats(struct ocfs2_lock_res *res, int level,
>  	stats->ls_gets++;
>  	stats->ls_total += ktime_to_ns(kt);
>  	/* overflow */
> -	if (unlikely(stats->ls_gets) == 0) {
> +	if (unlikely(stats->ls_gets == 0)) {
>  		stats->ls_gets++;
>  		stats->ls_total = ktime_to_ns(kt);
>  	}

-- 

"There are only two ways to live your life. One is as though nothing
 is a miracle. The other is as though everything is a miracle."
        - Albert Einstein

			http://www.jlbec.org/
			jlbec@...lplan.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ