Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 091685a6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "block: fix use-after-free in sys_ioprio_get()"

parents aff86d3b f1c3024e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -831,6 +831,7 @@ static void disk_seqf_stop(struct seq_file *seqf, void *v)
	if (iter) {
		class_dev_iter_exit(iter);
		kfree(iter);
		seqf->private = NULL;
	}
}

+2 −0
Original line number Diff line number Diff line
@@ -150,8 +150,10 @@ static int get_task_ioprio(struct task_struct *p)
	if (ret)
		goto out;
	ret = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, IOPRIO_NORM);
	task_lock(p);
	if (p->io_context)
		ret = p->io_context->ioprio;
	task_unlock(p);
out:
	return ret;
}