From 85ea45eedb6d36c0dcaf32ef4b399c90198b94bf Mon Sep 17 00:00:00 2001 From: Tony Truong Date: Fri, 3 Apr 2020 18:13:00 -0700 Subject: [PATCH] msm: pcie: fix user info in client's event callback Clients store their private data in user within event structure and not in notify structure. Thus update the callback to point to the correct user info. Change-Id: I938b135443d66b9451cead35d508bad9a4f685f8 Signed-off-by: Tony Truong --- drivers/pci/controller/pci-msm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pci-msm.c b/drivers/pci/controller/pci-msm.c index 866b34962622..8a0bd4548792 100644 --- a/drivers/pci/controller/pci-msm.c +++ b/drivers/pci/controller/pci-msm.c @@ -4692,7 +4692,7 @@ static void msm_pcie_notify_client(struct msm_pcie_dev_t *dev, struct msm_pcie_notify client_notify; client_notify.event = event; - client_notify.user = notify->user; + client_notify.user = dev->event_reg->user; client_notify.data = notify->data; client_notify.options = notify->options; PCIE_DUMP(dev, "PCIe: callback RC%d for event %d\n",