igb_uio: add missing locking to config access
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 18 Jul 2014 16:14:55 +0000 (09:14 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 18 Jul 2014 23:54:41 +0000 (01:54 +0200)
commitc631fcb494c6cdc019ccb671bf0a940e0896e3a8
tree699892555d4f65f15a607ba70466d5f35388c950
parent8cb854785a32b759dc010ece367c389e8857336b
igb_uio: add missing locking to config access

Access to PCI config space should be inside pci_cfg_access_lock
to avoid read/modify/write races.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_eal/linuxapp/igb_uio/igb_uio.c