diff options
author | Jeff Mahoney <jeffm@suse.com> | 2014-04-02 22:40:26 +0400 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-05-15 11:55:20 +0400 |
commit | 8e7f2dc649bb6bb379ce8428c1bcfede59adc41c (patch) | |
tree | 4f407a9fdb3966f086c4191bf4beefc4a97fb4af /drivers/usb/gadget/uvc_v4l2.c | |
parent | 065487a10a22a960bc4e41facb011d10692ef470 (diff) | |
download | linux-8e7f2dc649bb6bb379ce8428c1bcfede59adc41c.tar.xz |
reiserfs: fix race in readdir
commit 01d8885785a60ae8f4c37b0ed75bdc96d0fc6a44 upstream.
jdm-20004 reiserfs_delete_xattrs: Couldn't delete all xattrs (-2)
The -ENOENT is due to readdir calling dir_emit on the same entry twice.
If the dir_emit callback sleeps and the tree is changed underneath us,
we won't be able to trust deh_offset(deh) anymore. We need to save
next_pos before we might sleep so we can find the next entry.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/usb/gadget/uvc_v4l2.c')
0 files changed, 0 insertions, 0 deletions