Merge "fuse: fix use after free issue in fuse_dev_do_read()"
This commit is contained in:
commit
282d3b2416
1 changed files with 4 additions and 0 deletions
|
@ -421,6 +421,10 @@ static void request_end(struct fuse_conn *fc, struct fuse_req *req)
|
|||
static void queue_interrupt(struct fuse_iqueue *fiq, struct fuse_req *req)
|
||||
{
|
||||
spin_lock(&fiq->waitq.lock);
|
||||
if (test_bit(FR_FINISHED, &req->flags)) {
|
||||
spin_unlock(&fiq->waitq.lock);
|
||||
return;
|
||||
}
|
||||
if (list_empty(&req->intr_entry)) {
|
||||
list_add_tail(&req->intr_entry, &fiq->interrupts);
|
||||
wake_up_locked(&fiq->waitq);
|
||||
|
|
Loading…
Add table
Reference in a new issue