Unverified Commit 24ec46d3 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!5945 [sync] PR-5861: ksmbd: fix uaf in smb20_oplock_break_ack

parents 441fac02 890223b1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8034,10 +8034,10 @@ static void smb20_oplock_break_ack(struct ksmbd_work *work)
		goto err_out;
	}

	opinfo_put(opinfo);
	ksmbd_fd_put(work, fp);
	opinfo->op_state = OPLOCK_STATE_NONE;
	wake_up_interruptible_all(&opinfo->oplock_q);
	opinfo_put(opinfo);
	ksmbd_fd_put(work, fp);

	rsp->StructureSize = cpu_to_le16(24);
	rsp->OplockLevel = rsp_oplevel;