Re: [PATCH v2 1/2] vb2: core: Skip planes array verification if pb is NULL

2016-05-13 Thread Sakari Ailus
Hi Hans, Hans Verkuil wrote: > On 05/12/2016 02:14 PM, Sakari Ailus wrote: >> An earlier patch fixing an input validation issue introduced another >> issue: vb2_core_dqbuf() is called with pb argument value NULL in some >> cases, causing a NULL pointer dereference. Fix this by skipping the >>

Re: [PATCH v2 1/2] vb2: core: Skip planes array verification if pb is NULL

2016-05-13 Thread Hans Verkuil
On 05/12/2016 02:14 PM, Sakari Ailus wrote: > An earlier patch fixing an input validation issue introduced another > issue: vb2_core_dqbuf() is called with pb argument value NULL in some > cases, causing a NULL pointer dereference. Fix this by skipping the > verification as there's nothing to

[PATCH v2 1/2] vb2: core: Skip planes array verification if pb is NULL

2016-05-12 Thread Sakari Ailus
An earlier patch fixing an input validation issue introduced another issue: vb2_core_dqbuf() is called with pb argument value NULL in some cases, causing a NULL pointer dereference. Fix this by skipping the verification as there's nothing to verify. Signed-off-by: David R