Re: Null pointer deference in drivers/power/pm2301_charger.c

2013-09-20 Thread Mike Galbraith
On Sat, 2013-09-21 at 04:25 +0300, Valentin Ilie wrote: > Hello, > > I am trying to solve a NULL pointer deference in > drivers/power/pm2301_charger.c (and to submit a trivial patch) but I > am not sure how to do it. > > Line 958 - 961 > pm2 = (struct pm2xxx_cha

Null pointer deference in drivers/power/pm2301_charger.c

2013-09-20 Thread Valentin Ilie
Hello, I am trying to solve a NULL pointer deference in drivers/power/pm2301_charger.c (and to submit a trivial patch) but I am not sure how to do it. Line 958 - 961 pm2 = (struct pm2xxx_charger*)i2c_get_clientdata(pm2xxx_i2c_client); if (!pm2) { dev_err(pm2->

Null pointer deference in drivers/power/pm2301_charger.c

2013-09-20 Thread Valentin Ilie
Hello, I am trying to solve a NULL pointer deference in drivers/power/pm2301_charger.c (and to submit a trivial patch) but I am not sure how to do it. Line 958 - 961 pm2 = (struct pm2xxx_charger*)i2c_get_clientdata(pm2xxx_i2c_client); if (!pm2) { dev_err(pm2-dev

Re: Null pointer deference in drivers/power/pm2301_charger.c

2013-09-20 Thread Mike Galbraith
On Sat, 2013-09-21 at 04:25 +0300, Valentin Ilie wrote: Hello, I am trying to solve a NULL pointer deference in drivers/power/pm2301_charger.c (and to submit a trivial patch) but I am not sure how to do it. Line 958 - 961 pm2 = (struct pm2xxx_charger*)i2c_get_clientdata