提交 d437058f 编写于 作者: Z Zhou Wang 提交者: Xie XiuQi

arm64: uacce: remove clear q after uacce_fops_fasync

driver inclusion
category: bugfix
bugzilla: 13683
CVE: NA

-------------------------------------------------

uacce: remove clear q after uacce_fops_fasync

Feature or Bugfix:Bugfix
Signed-off-by: NZhou Wang <wangzhou1@hisilicon.com>
Reviewed-by: Nxuzaibo <xuzaibo@huawei.com>
Signed-off-by: NMingqiang Ling <lingmingqiang@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 ae3b01ca
......@@ -635,7 +635,6 @@ static int uacce_fops_flush(struct file *filep, fl_owner_t id)
{
struct uacce_queue *q = filep->private_data;
struct uacce *uacce = q->uacce;
filep->private_data = NULL;
/*
* It is different between CI and kernel-dev here, so delete list
......@@ -648,6 +647,9 @@ static int uacce_fops_flush(struct file *filep, fl_owner_t id)
list_del(&q->q_dev);
mutex_unlock(&uacce->q_lock);
/* filep->private_date is still used by above uacce_fops_fasync */
filep->private_data = NULL;
return uacce_queue_drain(q);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册