[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110727161542.GA20238@kroah.com>
Date: Wed, 27 Jul 2011 09:15:42 -0700
From: Greg KH <greg@...ah.com>
To: Will Newton <will.newton@...il.com>
Cc: Linux Kernel list <linux-kernel@...r.kernel.org>,
stable@...nel.org, Arnd Bergmann <arnd@...db.de>
Subject: Re: [stable] [PATCH] bitops: Use volatile in generic atomic bitops.
On Wed, Jul 27, 2011 at 01:21:19PM +0100, Will Newton wrote:
> The generic atomic bitops currently explicitly cast away the
> volatile from the pointer passed to them. This will allow the
> access to the bitfield to happen outside of the critical section
> thus making the bitops no longer interrupt-safe. Remove this cast
> and add a volatile keyword to make sure all accesses to the
> bitfield happen inside the critical section.
>
> Signed-off-by: Will Newton <will.newton@...tec.com>
> ---
> include/asm-generic/bitops/atomic.h | 12 ++++++------
> 1 files changed, 6 insertions(+), 6 deletions(-)
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read Documentation/stable_kernel_rules.txt
for how to do this properly.
</formletter>
--
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