Re: [ovs-dev] [PATCH 1/1] openvswitch: check return value of nla_nest_start

2017-04-23 Thread Pravin Shelar
On Sat, Apr 22, 2017 at 11:43 PM, Pan Bian wrote: > Function nla_nest_start() will return a NULL pointer on error, and its > return value should be validated before it is used. However, in function > queue_userspace_packet(), its return value is ignored. This may result > in

[PATCH 1/1] openvswitch: check return value of nla_nest_start

2017-04-23 Thread Pan Bian
Function nla_nest_start() will return a NULL pointer on error, and its return value should be validated before it is used. However, in function queue_userspace_packet(), its return value is ignored. This may result in NULL dereference when calling nla_nest_end(). This patch fixes the bug.