NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/46120: audiomp: dev/bluetooth/btsco.c locking error



>Number:         46120
>Category:       kern
>Synopsis:       audiomp: dev/bluetooth/btsco.c locking error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 01 10:45:00 +0000 2012
>Originator:     Andrew Doran
>Release:        -current
>Organization:
The NetBSD Project
>Environment:
N/A
>Description:
    283 static void
    284 btsco_attach(device_t parent, device_t self, void *aux)
...
    298         mutex_init(&sc->sc_intr_lock, MUTEX_DEFAULT, IPL_NONE);
   
Note IPL_NONE.

    435 static void
    436 btsco_sco_disconnected(void *arg, int err)
...
    461                 mutex_spin_enter(&sc->sc_intr_lock);

And other cases using mutex_spin_.. fastpath.  Should be mutex_enter().


>How-To-Repeat:
Code inspection.
>Fix:
Obvious.



Home | Main Index | Thread Index | Old Index