idpf: Acquire the lock before accessing the xn->salt
authorManoj Vishwanathan <manojvishy@google.com>
Mon, 16 Dec 2024 16:27:33 +0000 (16:27 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 24 Jan 2025 18:03:39 +0000 (10:03 -0800)
commitd15fe4edd7decdf14d8ad2b78df100ea23302065
treebe4ed4a4d88c00a8637c6cd90f15790551459a7d
parent137da75ba72593598898a4e79da34f4b2da5d151
idpf: Acquire the lock before accessing the xn->salt

The transaction salt was being accessed before acquiring the
idpf_vc_xn_lock when idpf has to forward the virtchnl reply.

Fixes: 34c21fa894a1 ("idpf: implement virtchnl transaction manager")
Signed-off-by: Manoj Vishwanathan <manojvishy@google.com>
Signed-off-by: David Decotigny <decot@google.com>
Signed-off-by: Brian Vazquez <brianvv@google.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Pavan Kumar Linga <pavan.kumar.linga@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c