]> 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)
commitafc56db88970ed821c43a569ce26785b9ae2f6ff
tree7925ee481602b189cb0af5619fb41c57ef66169f
parent8c1c004689c9d87e77fe7d770dfda3e78a4ea6b4
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