Skip to content

Commit

Permalink
i2c: pnx: Fix crash due to wrong init of timer->data
Browse files Browse the repository at this point in the history
alg_data is already a pointer which must be passed directly.

Reported-by: Dieter Ripp <ripp@systecnet.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Ben Dooks <ben-i2c@fluff.org>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
  • Loading branch information
Wolfram Sang authored and Ben Dooks committed May 12, 2011
1 parent ca1376d commit 9ddabb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-pnx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9ddabb0

Please sign in to comment.