Subject: kern/14242: ieee80211_ifdetach() spl bogon.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <simonb@wasabisystems.com>
List: netbsd-bugs
Date: 10/14/2001 10:34:17
>Number:         14242
>Category:       kern
>Synopsis:       ieee80211_ifdetach() spl bogon.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Oct 13 17:35:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Simon Burge
>Release:        NetBSD-current as of Oct 14, 2001
>Organization:
Wasabi Systems
>Environment:
n/a

>Description:
	In sys/net/if_ieee80211subr.c, the ieee80211_ifdetach() function
	has a call to splnet(), but no calls to splx().

>How-To-Repeat:
	Look at the code.

>Fix:
	Either add an splx(s) to the end of the function, or remove
	the "s = splnet()".  There doesn't seem to be anything in the
	function that needs protection from interupts, so the latter fix
	seems more likely, but I'm not 100% sure hence this PR.
>Release-Note:
>Audit-Trail:
>Unformatted: