]> git.proxmox.com Git - ovs.git/commit
netdev-dpdk: Don't use dev->vhost_id without mutex.
authorIlya Maximets <i.maximets@samsung.com>
Tue, 6 Dec 2016 06:45:07 +0000 (09:45 +0300)
committerBen Pfaff <blp@ovn.org>
Tue, 6 Dec 2016 17:38:35 +0000 (09:38 -0800)
commit569c26da9d0f93bc0e110ee267d4f3a770a0da0c
tree30fac7a35c213e1b3d8fa71793da092f4d627011
parentc8c300b88b945dd8393cc9553fa3b8f38fef9db3
netdev-dpdk: Don't use dev->vhost_id without mutex.

The copy should be used here.
Additionally, 'strlen' changed to the faster check.

Fixes: 821b86649a90 ("netdev-dpdk: Don't try to unregister empty vhost_id.")
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/netdev-dpdk.c