diff options
author | adrian <adrian@FreeBSD.org> | 2012-03-02 02:53:43 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2012-03-02 02:53:43 +0000 |
commit | 8aaa665509e9b3c1ef98710a57fdfff323336625 (patch) | |
tree | 6dc60554a393a6bb37af689c980c2d9f64ef7c8b /lib/libc/string/strmode.c | |
parent | bdf6581a3ad680b525afe8638a1dbadbee7bc5c1 (diff) | |
download | FreeBSD-src-8aaa665509e9b3c1ef98710a57fdfff323336625.zip FreeBSD-src-8aaa665509e9b3c1ef98710a57fdfff323336625.tar.gz |
Attempt to catch scan cancellations at exactly the wrong time from occuring.
The scan code unlocks the comlock and calls into the driver. It then
assumes the state hasn't changed from underneath it.
Although I haven't seen this particular condition trigger, I'd like to
be informed if I or anyone else sees it.
What I'm thinking may occur:
* A cancellation comes in during the scan_end call;
* the cancel flag is set;
* but it's never checked, so scandone isn't updated;
* .. and the interface stays in the STA power save mode.
It's a subtle race, if it even exists.
PR: kern/163318
Diffstat (limited to 'lib/libc/string/strmode.c')
0 files changed, 0 insertions, 0 deletions