Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Sep 2021 08:40:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 258243] A lock related issue in function wpi_run
Message-ID:  <bug-258243-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258243

            Bug ID: 258243
           Summary: A lock related issue in function wpi_run
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: dinghao.liu@zju.edu.cn

There is a lock issue in sys/dev/wpi/if_wpi.c. In function wpi_run(),
WPI_RXON_LOCK() is called after wpi_set_timing(), but its corresponding
WPI_RXON_UNLOCK() is not executed on failure of wpi_send_rxon(), which may
cause a deadlock. This code logic is similar with wpi_auth(), and in this
function we do not return on failure of wpi_send_rxon().

This bug is suggested by a static analysis tool, please advise.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258243-227>