Re: [PATCH][next] media: ov2740: fix dereference before null check on pointer nvm

2020-12-02 Thread Bingbu Cao
Hi, Colin Thanks for your patch. On 11/26/20 7:49 PM, Colin King wrote: > From: Colin Ian King > > Currently pointer nvm is being dereferenced before it is being null > checked. Fix this by moving the assignments of pointers client and > ov2740 so that are after the null check hence avoiding a

[PATCH][next] media: ov2740: fix dereference before null check on pointer nvm

2020-11-26 Thread Colin King
From: Colin Ian King Currently pointer nvm is being dereferenced before it is being null checked. Fix this by moving the assignments of pointers client and ov2740 so that are after the null check hence avoiding any potential null pointer dereferences on pointer nvm. Fixes: 5e6fd339b68d ("media: