Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 69128 Build 66011: arc lint + arc unit
Event Timeline
| sys/dev/sound/midi/midi.c | ||
|---|---|---|
| 474 | are there any struct snd_midimembers that could be invalid after dropping and reacquiring the lock? E.g. could m->flags & M_RX no longer be true? | |
| sys/dev/sound/midi/midi.c | ||
|---|---|---|
| 474 | The only place where M_RX gets cleared is in midi_close(), so I'm not sure we should worry about this, since by that time we'll have closed and midi_read() will just need to flush. Or am I missing something? | |
| sys/dev/sound/midi/midi.c | ||
|---|---|---|
| 551 | used is calculated above: used = MIN(MIDIQ_AVAIL(m->outq), uio->uio_resid). What if the amount of available space changed while the lock was dropped? | |