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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



+ 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@xxxxxxxxxx>
> 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@xxxxxxxxxx>
> Cc: David Woodhouse <dwmw2@xxxxxxxxxxxxx>
> Cc: Brian Norris <computersforpeace@xxxxxxxxx>
> Cc: Artem Bityutskiy <artem.bityutskiy@xxxxxxxxxxxxxxx>
> Cc: <stable@xxxxxxxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>

Pushed to l2-mtd.git. Thanks!

Brian
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]