From: Li Zefan Date: Wed, 12 Feb 2014 20:44:57 +0000 (-0800) Subject: jffs2: remove from wait queue after schedule() X-Git-Tag: v3.15-rc1~65^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ead9578443b66ddb3d50ed4f53af8a0c0298ec5;p=pandora-kernel.git jffs2: remove from 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 Cc: David Woodhouse Cc: Artem Bityutskiy Cc: Signed-off-by: Andrew Morton Signed-off-by: Brian Norris --- Reading git-diff-tree failed