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
F153497921: D48966.id150911.diff
Tue, Apr 21, 11:41 AM
Unknown Object (File)
Tue, Apr 21, 4:15 AM
Unknown Object (File)
Sun, Apr 19, 8:38 PM
Unknown Object (File)
Sun, Apr 19, 8:38 PM
Unknown Object (File)
Sun, Apr 19, 5:50 PM
Unknown Object (File)
Fri, Apr 17, 1:18 AM
Unknown Object (File)
Fri, Apr 17, 12:54 AM
Unknown Object (File)
Wed, Apr 15, 9:55 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62397
Build 59281: arc lint + arc unit

Event Timeline

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

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
1188

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

1191

This comment doesn't seem very useful?

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

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.