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)
commit6a2c2b2c1bcbc3bc3ad484916d84c16eb58a6f70
tree7925ee481602b189cb0af5619fb41c57ef66169f
parenteddbee9b949a00675e19bf84eda52023da0059ef
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