Re: [PATCH v2] staging: atomisp: move null check to earlier point

2020-07-31 Thread Andy Shevchenko
On Fri, Jul 31, 2020 at 01:17:38AM +0300, Cengiz Can wrote: > `find_gmin_subdev` function that returns a pointer to `struct func() are referred with name followed by parentheses. > gmin_subdev` can return NULL. > In `gmin_v2p8_ctrl` there's a call to this function but the possibility > of a

[PATCH v2] staging: atomisp: move null check to earlier point

2020-07-30 Thread Cengiz Can
`find_gmin_subdev` function that returns a pointer to `struct gmin_subdev` can return NULL. In `gmin_v2p8_ctrl` there's a call to this function but the possibility of a NULL was not checked before its being dereferenced. ie: ``` /* Acquired here v */ struct gmin_subdev *gs =