Re: [patch 1/1] staging: speakup: fix async usb removal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Sat, Aug 05, 2017 at 06:56:01PM +0100, Okash Khawaja wrote:
> When an external USB synth is unplugged while the module is loaded, we
> get a null pointer deref. This is because the tty disappears while
> speakup tries to use to to communicate with the synth. This patch fixes
> it by checking tty for null before using it. In case of error, it sets
> synth->alive to zero and starts ttys. It also updates catch_up kthread
> to check for synth->alive whenever synth_out fails. This way, when
> synth_out fails, catch_up thread won't be looping forever.
Sorry this description is not correct. Last two sentences, starting from
"It also updates..." should be ignored. I'll send a v2.

Thanks,
Okash
_______________________________________________
Speakup mailing list
Speakup@xxxxxxxxxxxxxxxxx
http://linux-speakup.org/cgi-bin/mailman/listinfo/speakup




[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux