An error occurred while fetching folder content.
jffs2: remove from wait queue after schedule()
Li Zefan authored
@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: default avatarLi Zefan <lizefan@huawei.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
3ead9578
Name Last commit Last update
..
9p Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
adfs adfs: delayed freeing of sbi
affs affs: use ->kill_sb() to simplify ->put_super() and failure exits of ->mount()
afs afs: proc cells and rootcell are writeable
autofs4 autofs: fix symlinks aren't checked for expiry
befs befs: iget_locked() doesn't return an ERR_PTR
bfs truncate: drop 'oldsize' truncate_pagecache() parameter
btrfs Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs
cachefiles Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
ceph ceph: fix __dcache_readdir()
cifs Merge branch 'for-linus' of git://git.samba.org/sfrench/cifs-2.6
coda coda_revalidate_inode(): switch to passing inode...
configfs configfs: fix race between dentry put and lookup
cramfs cramfs: take headers to fs/cramfs
debugfs debugfs: use list_next_entry() in debugfs_remove_recursive()
devpts devpts: plug the memory leak in kill_sb
dlm Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
ecryptfs ecryptfs: fix failure handling in ->readlink()
efivarfs consolidate simple ->d_delete() instances
efs efs: get rid of ->put_super()
exofs exofs: Print less in r4w
exportfs exportfs: fix quadratic behavior in filehandle lookup
ext2 ext2/3/4: use generic posix ACL infrastructure
ext3 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
ext4 ext4: don't leave i_crtime.tv_sec uninitialized
f2fs
fat
freevxfs
fscache
fuse
gfs2
hfs
hfsplus
hostfs
hpfs
hppfs
hugetlbfs
isofs
jbd
jbd2
jffs2
jfs
kernfs
lockd
logfs
minix
ncpfs
nfs
nfs_common
nfsd
nilfs2
nls
notify
ntfs
ocfs2
omfs
openpromfs
proc
pstore
qnx4
qnx6
quota
ramfs
reiserfs
romfs
squashfs
sysfs
sysv
ubifs
udf
ufs
xfs
Kconfig
Kconfig.binfmt
Makefile
aio.c
anon_inodes.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf.c
binfmt_elf_fdpic.c
binfmt_em86.c
binfmt_flat.c
binfmt_misc.c
binfmt_script.c
binfmt_som.c
bio-integrity.c
bio.c
block_dev.c
buffer.c
char_dev.c
compat.c
compat_binfmt_elf.c
compat_ioctl.c
coredump.c
dcache.c
dcookies.c
direct-io.c
drop_caches.c