Skip to content
Commit 645cef13 authored by Yuquan Wang's avatar Yuquan Wang Committed by Greg Kroah-Hartman
Browse files

cxl/mem: Fix for the index of Clear Event Record Handle



[ Upstream commit b7c59b03 ]

The dev_dbg info for Clear Event Records mailbox command would report
the handle of the next record to clear not the current one.

This was because the index 'i' had incremented before printing the
current handle value.

Fixes: 6ebe28f9 ("cxl/mem: Read, trace, and clear events on driver load")
Signed-off-by: default avatarYuquan Wang <wangyuquan1236@phytium.com.cn>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarDan Williams <dan.j.williams@intel.com>
Reviewed-by: default avatarFan Ni <fan.ni@samsung.com>
Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c0781d68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment