netlink-socket: Exit NL transaction loop when EINVAL is returned
authorBen Pfaff <blp@nicira.com>
Mon, 20 Apr 2015 19:43:37 +0000 (12:43 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 20 Apr 2015 19:43:57 +0000 (12:43 -0700)
commitb937e116da2cf64973248123a57a68261797b7dd
treea4f15567b34707d409bfc832903bbfbf13f77314
parent19aef6ef26d36511d820e3e629c57df59eb0941d
netlink-socket: Exit NL transaction loop when EINVAL is returned

The nl_sock_transact_multiple function enters in an infinite loop,
when invalid error, EINVAL, is returned by nl_sock_transact_multiple__.
EINVAL is the error returned by the latter function when a driver
request fails.

Signed-off-by: Sorin Vinturis <svinturis@cloudbasesolutions.com>
Reported-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Reported-at: https://github.com/openvswitch/ovs-issues/issues/57
Acked-by: Eitan Eliahu <eliahue@vmware.com>
Acked-by: Nithin Raju <nithin@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netlink-socket.c