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 <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Cc: Russell King <[email protected]>
Cc: Ben Dooks <[email protected]>
Signed-off-by: Ben Dooks <[email protected]>
This commit is contained in:
Wolfram Sang 2011-04-29 15:30:02 +02:00 • committed by Ben Dooks
commit 9ddabb055d

View file

@ -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);
}