Skip to content

Commit

Permalink
ax25: In write(), do the sendlink add under the base lock
Browse files Browse the repository at this point in the history
The write operation no longer runs under the base lock, use the
write function to add the channel to the sendlink queue.

Signed-off-by: Corey Minyard <[email protected]>
  • Loading branch information
cminyard committed Dec 28, 2024
1 parent 013e7b7 commit 46b0308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gensio_ax25.c
Original file line number Diff line number Diff line change
Expand Up @@ -4386,7 +4386,7 @@ ax25_chan_write(struct ax25_chan *chan, gensiods *rcount,
assert(chan->send_len <= chan->conf.writewindow);

if (!chan->peer_rcv_bsy)
i_ax25_chan_schedule_write(chan);
ax25_chan_schedule_write(chan);

out_unlock:
ax25_chan_unlock(chan);
Expand Down

0 comments on commit 46b0308

Please sign in to comment.