summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2026-05-07 00:48:15 +0300
committerJakub Kicinski <kuba@kernel.org>2026-05-09 02:01:09 +0300
commit0ded1f36ba4021cba50513e80be6b6e173710168 (patch)
treecafcb213f7f9caf6ed89baa2e01cbed16ed68161 /scripts
parentb3cda96feb60d91fe88d52b974ff110dcfa91239 (diff)
downloadlinux-0ded1f36ba4021cba50513e80be6b6e173710168.tar.xz
ice: fix locking in ice_dcb_rebuild()
Move the mutex_lock() call up to prevent that DCB settings change after the first ice_query_port_ets() call. The second ice_query_port_ets() call in ice_dcb_rebuild() is already protected by pf->tc_mutex. This also fixes a bug in an error path, as before taking the first "goto dcb_error" in the function jumped over mutex_lock() to mutex_unlock(). This bug has been detected by the clang thread-safety analyzer. Cc: intel-wired-lan@lists.osuosl.org Fixes: 242b5e068b25 ("ice: Fix DCB rebuild after reset") Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com> Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Tested-by: Arpana Arland <arpanax.arland@intel.com> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Link: https://patch.msgid.link/20260506-jk-iwl-net-2026-05-04-v2-6-a5ea4dc837a9@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions