]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
idpf: improve locking around idpf_vc_xn_push_free()
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 19 Mar 2026 21:13:34 +0000 (14:13 -0700)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 6 Apr 2026 20:39:08 +0000 (13:39 -0700)
commitd086fae65006368618104ba4c57779440eab2217
treee748fd1772b9c0ba11bcd5413792f245770c5822
parent591478118293c1bd628de330a99eb1eb2ef8d76b
idpf: improve locking around idpf_vc_xn_push_free()

Protect the set_bit() operation for the free_xn bitmask in
idpf_vc_xn_push_free(), to make the locking consistent with rest of the
code and avoid potential races in that logic.

Fixes: 34c21fa894a1 ("idpf: implement virtchnl transaction manager")
Cc: stable@vger.kernel.org
Reported-by: Ray Zhang <sgzhang@google.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Tested-by: Samuel Salin <Samuel.salin@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c