]> git.baikalelectronics.ru Git - kernel.git/commit
ice: adjust profile ID map locks
authorVictor Raj <victor.raj@intel.com>
Thu, 30 Jul 2020 00:19:21 +0000 (17:19 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Sat, 1 Aug 2020 15:44:04 +0000 (08:44 -0700)
commita167ae6e587504e0b385041ac3c893e4b72df646
tree7925ee481602b189cb0af5619fb41c57ef66169f
parent13961edcf2e7334ebbef3ae120b47a154b135e5a
ice: adjust profile ID map locks

The profile ID map lock should be held till the caller completes
all references of that profile entries.

The current code releases the lock right after the match search.
This caused a driver issue when the profile map entries were
referenced after it was freed in other thread after the lock was
released earlier.

Signed-off-by: Victor Raj <victor.raj@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_flex_pipe.c