Re: [PATCH] [media] mxl111sf: Fix potential null pointer dereference

2017-08-13 Thread Michael Ira Krufky
On Sun, Aug 13, 2017 at 6:06 AM, Eugeniu Rosca wrote: > From: Eugeniu Rosca > > Reviewing the delta between cppcheck output of v4.9.39 and v4.9.40 > stable updates, I stumbled on the new warning: > > mxl111sf.c:80: (warning) Possible null pointer dereference: rbuf > > Since copying state->rcvbuf

[PATCH] [media] mxl111sf: Fix potential null pointer dereference

2017-08-13 Thread Eugeniu Rosca
From: Eugeniu Rosca Reviewing the delta between cppcheck output of v4.9.39 and v4.9.40 stable updates, I stumbled on the new warning: mxl111sf.c:80: (warning) Possible null pointer dereference: rbuf Since copying state->rcvbuf into rbuf is not needed in the 'write-only' scenario (i.e. calling m