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.2.58~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22af2c501a2c1980e848ce138031ed1cab278f55;p=pandora-kernel.git jffs2: remove from wait queue after schedule() commit 3ead9578443b66ddb3d50ed4f53af8a0c0298ec5 upstream. @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 Signed-off-by: Andrew Morton Signed-off-by: Brian Norris Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed