Page MenuHomeFreeBSD

sound: Call chn_kill() in chn_init() failure
ClosedPublic

Authored by christos on Feb 12 2025, 4:04 PM.
Tags
None
Referenced Files
F140086063: D48966.id150982.diff
Sat, Dec 20, 1:23 AM
Unknown Object (File)
Thu, Dec 18, 11:27 PM
Unknown Object (File)
Thu, Dec 11, 9:48 AM
Unknown Object (File)
Wed, Dec 10, 12:32 PM
Unknown Object (File)
Wed, Dec 10, 12:32 PM
Unknown Object (File)
Sat, Dec 6, 2:44 AM
Unknown Object (File)
Sat, Dec 6, 1:35 AM
Unknown Object (File)
Fri, Nov 28, 12:04 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/dev/sound/pcm/channel.c
1311

I removed this and moved these increments inside the switch at the top of chn_init(). This is to avoid inconsistencies since chn_kill() decrements these counters.

sys/dev/sound/pcm/channel.c
1181–1183

The FALLTHROUGH comment has to appear at the end of the case.

1185

This comment doesn't seem very useful?

christos added inline comments.
sys/dev/sound/pcm/channel.c
1185

This was a leftover I forgot to correct. Thank you.

This revision was not accepted when it landed; it landed in state Needs Review.Feb 25 2025, 11:49 AM
This revision was automatically updated to reflect the committed changes.