[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20250315133140.1707949-1-raag.jadav@intel.com>
Date: Sat, 15 Mar 2025 19:01:40 +0530
From: Raag Jadav <raag.jadav@...el.com>
To: giometti@...eenne.com,
gregkh@...uxfoundation.org,
andriy.shevchenko@...ux.intel.com
Cc: linux-kernel@...r.kernel.org,
Raag Jadav <raag.jadav@...el.com>
Subject: [PATCH v1] pps: generators: tio: fix platform_set_drvdata()
Set driver_data correctly and fix illegal memory access on driver reload.
Fixes: c89755d1111f ("pps: generators: Add PPS Generator TIO Driver")
Signed-off-by: Raag Jadav <raag.jadav@...el.com>
---
drivers/pps/generators/pps_gen_tio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pps/generators/pps_gen_tio.c b/drivers/pps/generators/pps_gen_tio.c
index 6c46b46c66cd..6e4a383957d9 100644
--- a/drivers/pps/generators/pps_gen_tio.c
+++ b/drivers/pps/generators/pps_gen_tio.c
@@ -230,7 +230,7 @@ static int pps_gen_tio_probe(struct platform_device *pdev)
hrtimer_init(&tio->timer, CLOCK_REALTIME, HRTIMER_MODE_ABS);
tio->timer.function = hrtimer_callback;
spin_lock_init(&tio->lock);
- platform_set_drvdata(pdev, &tio);
+ platform_set_drvdata(pdev, tio);
return 0;
}
base-commit: 6f119e3da79ce5e586340059403ab77201c1bb45
--
2.34.1
Powered by blists - more mailing lists