[patch 4/4] jffs2: remove wait queue after schedule()

Brian Norris computersforpeace at gmail.com
Tue Feb 25 21:07:04 EST 2014


+ linux-mtd (this patch was on the ML previously, but akpm re-sent it)

On Wed, Feb 12, 2014 at 12:44:57PM -0800, Andrew Morton wrote:
> From: Li Zefan <lizefan at huawei.com>
> Subject: jffs2: remove wait queue after schedule()
> 
> @wait is a local variable, so if we don't remove it from the wait queue
> list, later wake_up() may end up accessing invalid memory.
> 
> This was spotted by eyes.
> 
> Signed-off-by: Li Zefan <lizefan at huawei.com>
> Cc: David Woodhouse <dwmw2 at infradead.org>
> Cc: Brian Norris <computersforpeace at gmail.com>
> Cc: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
> Cc: <stable at vger.kernel.org>
> Signed-off-by: Andrew Morton <akpm at linux-foundation.org>

Pushed to l2-mtd.git. Thanks!

Brian



More information about the linux-mtd mailing list