Re: [PATCH 1/1] power: Fix unchecked return value of devm_kzalloc

2017-05-01 Thread Sebastian Reichel
Hi, On Mon, Apr 24, 2017 at 04:22:08PM +0800, Pan Bian wrote: > Function devm_kzalloc() will return a NULL pointer. However, in function > isp1704_charger_probe(), the return value of devm_kzalloc() is directly > used without validation. This may result in a bad memory access bug. > >

Re: [PATCH 1/1] power: Fix unchecked return value of devm_kzalloc

2017-05-01 Thread Sebastian Reichel
Hi, On Mon, Apr 24, 2017 at 04:22:08PM +0800, Pan Bian wrote: > Function devm_kzalloc() will return a NULL pointer. However, in function > isp1704_charger_probe(), the return value of devm_kzalloc() is directly > used without validation. This may result in a bad memory access bug. > >

Re: [PATCH 1/1] power: Fix unchecked return value of devm_kzalloc

2017-04-25 Thread Pali Rohár
On Monday 24 April 2017 16:22:08 Pan Bian wrote: > Function devm_kzalloc() will return a NULL pointer. However, in function > isp1704_charger_probe(), the return value of devm_kzalloc() is directly > used without validation. This may result in a bad memory access bug. > > Signed-off-by: Pan Bian

Re: [PATCH 1/1] power: Fix unchecked return value of devm_kzalloc

2017-04-25 Thread Pali Rohár
On Monday 24 April 2017 16:22:08 Pan Bian wrote: > Function devm_kzalloc() will return a NULL pointer. However, in function > isp1704_charger_probe(), the return value of devm_kzalloc() is directly > used without validation. This may result in a bad memory access bug. > > Signed-off-by: Pan Bian

[PATCH 1/1] power: Fix unchecked return value of devm_kzalloc

2017-04-24 Thread Pan Bian
Function devm_kzalloc() will return a NULL pointer. However, in function isp1704_charger_probe(), the return value of devm_kzalloc() is directly used without validation. This may result in a bad memory access bug. Signed-off-by: Pan Bian ---

[PATCH 1/1] power: Fix unchecked return value of devm_kzalloc

2017-04-24 Thread Pan Bian
Function devm_kzalloc() will return a NULL pointer. However, in function isp1704_charger_probe(), the return value of devm_kzalloc() is directly used without validation. This may result in a bad memory access bug. Signed-off-by: Pan Bian --- drivers/power/supply/isp1704_charger.c | 4 1

Re: [PATCH 1/1] power: Fix unchecked return value of devm_kzalloc

2017-04-24 Thread Pali Rohár
On Monday 24 April 2017 08:34:08 Pan Bian wrote: > Function devm_kzalloc() will return a NULL pointer. However, in function > isp1704_charger_probe(), the return value of devm_kzalloc() is directly > used without validation. This may result in a bad memory access bug. > > Signed-off-by: Pan Bian

Re: [PATCH 1/1] power: Fix unchecked return value of devm_kzalloc

2017-04-24 Thread Pali Rohár
On Monday 24 April 2017 08:34:08 Pan Bian wrote: > Function devm_kzalloc() will return a NULL pointer. However, in function > isp1704_charger_probe(), the return value of devm_kzalloc() is directly > used without validation. This may result in a bad memory access bug. > > Signed-off-by: Pan Bian

[PATCH 1/1] power: Fix unchecked return value of devm_kzalloc

2017-04-23 Thread Pan Bian
Function devm_kzalloc() will return a NULL pointer. However, in function isp1704_charger_probe(), the return value of devm_kzalloc() is directly used without validation. This may result in a bad memory access bug. Signed-off-by: Pan Bian ---

[PATCH 1/1] power: Fix unchecked return value of devm_kzalloc

2017-04-23 Thread Pan Bian
Function devm_kzalloc() will return a NULL pointer. However, in function isp1704_charger_probe(), the return value of devm_kzalloc() is directly used without validation. This may result in a bad memory access bug. Signed-off-by: Pan Bian --- drivers/power/supply/isp1704_charger.c | 2 ++ 1 file