Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad address error #2

Open
MusicMaker opened this issue Nov 29, 2020 · 0 comments
Open

bad address error #2

MusicMaker opened this issue Nov 29, 2020 · 0 comments

Comments

@MusicMaker
Copy link

MusicMaker commented Nov 29, 2020

Whenever trying to send/recive data (for example amidi) a "Bad address' error is returned. The reason the the following call faila.

// select N_TTY line discipline (for sure)
ldisc = N_TTY;
if ((retval = ioctl_tty(serial->file, TIOCSETD, (unsigned long)&ldisc)) < 0) {
snd_printk(KERN_ERR "TIOCSETD (N_TTY) failed for tty %s\n", serial->sdev);
goto __end;
}
When this code is removed, amidi can connect the port but it causes an kernel crash and hangs up the MIDI sub system

[990.262157] RIP: 0010:snd_serialmidi_output_trigger+0x58/0x140 [snd_serialmidi]

only a reboot can kill the processes. Proably the cause is due to ldisc = tty->ldisc not being set.

Ubuntu 20.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant