From: Wolfram Sang Date: Fri, 29 Apr 2011 13:30:02 +0000 (+0200) Subject: i2c: pnx: Fix crash due to wrong init of timer->data X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9ddabb055d73c63037878bb9346e52c7f2e07e96;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git i2c: pnx: Fix crash due to wrong init of timer->data alg_data is already a pointer which must be passed directly. Reported-by: Dieter Ripp Signed-off-by: Wolfram Sang Cc: Russell King Cc: Ben Dooks Signed-off-by: Ben Dooks --- diff --git a/drivers/i2c/busses/i2c-pnx.c b/drivers/i2c/busses/i2c-pnx.c index a97e3fec8148..04be9f82e14b 100644 --- a/drivers/i2c/busses/i2c-pnx.c +++ b/drivers/i2c/busses/i2c-pnx.c @@ -65,7 +65,7 @@ static inline void i2c_pnx_arm_timer(struct i2c_pnx_algo_data *alg_data) jiffies, expires); timer->expires = jiffies + expires; - timer->data = (unsigned long)&alg_data; + timer->data = (unsigned long)alg_data; add_timer(timer); }