https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220239
Bug ID: 220239
Summary: sys/dev/advansys/adwcam.c: A possible
sleep-under-mutex bug in adw_init
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
The driver may sleep under a mutex, and function call path is:
adw_init [line 1098: acquire the mutex]
adwallocacbs
bus_dmamap_create(BUS_DMA_WAITOK) --> may sleep
The possible fix of this bug is to replace the "BUS_DMA_WAITOK" in
bus_dmamap_create with "BUS_DMA_NOWAIT".
This bug is found by a static analysis tool written by myself, and it is
checked by my review of the FreeBSD code.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"