Re: [PATCH v8 3/6] power: supply: Add error checking of psy desc during registration

2018-04-24 Thread Heikki Krogerus
On Mon, Apr 23, 2018 at 03:10:58PM +0100, Adam Thomson wrote: > Currently there's no error checking of this parameter in the > registration function and it's blindly added to psy class and > subsequently used as is. For example if this is NULL the call > to psy_register_thermal() will try to derefe

[PATCH v8 3/6] power: supply: Add error checking of psy desc during registration

2018-04-23 Thread Adam Thomson
Currently there's no error checking of this parameter in the registration function and it's blindly added to psy class and subsequently used as is. For example if this is NULL the call to psy_register_thermal() will try to dereference the pointer thus causing a kernel dump. This commit updates the