]> git.proxmox.com Git - ovs.git/commit
netdev: Safely increment refcount in netdev_open().
authorJoe Stringer <joestringer@nicira.com>
Thu, 1 May 2014 23:55:05 +0000 (11:55 +1200)
committerJoe Stringer <joestringer@nicira.com>
Sun, 4 May 2014 23:20:43 +0000 (11:20 +1200)
commitca94dda64d82fc7a65e8de2c1479e7c83bdc152b
tree03b52747e1787e19813d57850abab1e519f4957d
parenta17ceb1bc48a37ab0c28734a80b23c391694e5f4
netdev: Safely increment refcount in netdev_open().

netdev_open() would previously increment a netdev's refcount without
holding a lock for it. This commit shifts the locking to protect it.

Found by inspection.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Reviewed-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/netdev.c