mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
Merge "usb: f_fs: Fix use-after-free for epfile"
This commit is contained in:
commit
39d09dfcce
1 changed files with 3 additions and 0 deletions
|
|
@ -1424,10 +1424,13 @@ ffs_epfile_release(struct inode *inode, struct file *file)
|
|||
{
|
||||
struct ffs_epfile *epfile = inode->i_private;
|
||||
struct ffs_data *ffs = epfile->ffs;
|
||||
unsigned long flags;
|
||||
|
||||
ENTER();
|
||||
|
||||
spin_lock_irqsave(&epfile->ffs->eps_lock, flags);
|
||||
__ffs_epfile_read_buffer_free(epfile);
|
||||
spin_unlock_irqrestore(&epfile->ffs->eps_lock, flags);
|
||||
ffs_log("%s: state %d setup_state %d flag %lu opened %u",
|
||||
epfile->name, epfile->ffs->state, epfile->ffs->setup_state,
|
||||
epfile->ffs->flags, atomic_read(&epfile->opened));
|
||||
|
|
|
|||
Loading…
Reference in a new issue