]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cxl/mem: Fix for the index of Clear Event Record Handle
authorYuquan Wang <wangyuquan1236@phytium.com.cn>
Mon, 18 Mar 2024 02:29:28 +0000 (10:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2024 09:19:27 +0000 (11:19 +0200)
commit645cef136e471a13fc11b99daf2c50deca79ac23
tree6c2ae5e89a6cfe9cb1a4d76fc37d784150d27c71
parentc0781d6898dcae9f8a7387a9ee60b8a651d45c5f
cxl/mem: Fix for the index of Clear Event Record Handle

[ Upstream commit b7c59b038c656214f56432867056997c2e0fc268 ]

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: 6ebe28f9ec72 ("cxl/mem: Read, trace, and clear events on driver load")
Signed-off-by: Yuquan Wang <wangyuquan1236@phytium.com.cn>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Fan Ni <fan.ni@samsung.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cxl/core/mbox.c