Commit 95e9dd71 authored by Russ Meyerriecks's avatar Russ Meyerriecks

dahdi_cfg: Reduce mass ioctls on non-existing channels

Logic was calling DAHDI_SPECIFY ioctl on all channels up to maximum channel
limit. Added a short circuit to prevent the ioctl on channels that aren't
Signed-off-by: 's avatarRuss Meyerriecks <>
Acked-by: 's avatarShaun Ruffell <>
parent df477219
......@@ -826,8 +826,9 @@ static int apply_fiftysix(void)
int chanfd;
for (x = 1; x < DAHDI_MAX_CHANNELS; x++) {
if (skip_channel(x))
if (skip_channel(x) || !cc[x].sigtype)
chanfd = open("/dev/dahdi/channel", O_RDWR);
if (chanfd == -1) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment