diff options
author | Li Zefan <lizefan@huawei.com> | 2014-02-12 12:44:57 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-04-22 16:49:21 -0700 |
commit | c454f77bd19c127c011599712d93222c792183a5 (patch) | |
tree | f6e42851bcc3fd6bafbdbedfabdb52e4db00d100 /kernel/locking/rtmutex-debug.c | |
parent | 88587d5d81cb84f99cfdc58d7d20ffaa8e27a4ae (diff) |
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 <lizefan@huawei.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/locking/rtmutex-debug.c')
0 files changed, 0 insertions, 0 deletions