mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs fixes from Al Viro: "stable fodder; assorted deadlock fixes" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: vt: synchronize_rcu() under spinlock is not nice... Nest rename_lock inside vfsmount_lock Don't bother with redoing rw_verify_area() from default_file_splice_from()
This commit is contained in:
commit
de55eb1d60
5 changed files with 48 additions and 8 deletions
|
|
@ -93,7 +93,7 @@ vcs_poll_data_free(struct vcs_poll_data *poll)
|
|||
static struct vcs_poll_data *
|
||||
vcs_poll_data_get(struct file *file)
|
||||
{
|
||||
struct vcs_poll_data *poll = file->private_data;
|
||||
struct vcs_poll_data *poll = file->private_data, *kill = NULL;
|
||||
|
||||
if (poll)
|
||||
return poll;
|
||||
|
|
@ -122,10 +122,12 @@ vcs_poll_data_get(struct file *file)
|
|||
file->private_data = poll;
|
||||
} else {
|
||||
/* someone else raced ahead of us */
|
||||
vcs_poll_data_free(poll);
|
||||
kill = poll;
|
||||
poll = file->private_data;
|
||||
}
|
||||
spin_unlock(&file->f_lock);
|
||||
if (kill)
|
||||
vcs_poll_data_free(kill);
|
||||
|
||||
return poll;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue