# Re: use after free in serport

- From: Jiri Slaby \<hidden\>
- Date: 2010-10-31 09:16:33 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2010/10/3636232
- Thread: https://ratatoskr.run/linux-input/2010/10/3636021/t.md

```text
On 10/30/2010 01:16 PM, Sebastian Andrzej Siewior wrote:
> Now we have the struct serport freed but the first process is still
> using it.
> 
> Any idea how to fix it?

I think so:
http://lkml.org/lkml/2010/10/21/223

(the updated patch attached)

regards,
-- 
js
suse labs
```

## Attachments

- [0001-Char-TTY-restore-tty\_ldisc\_wait\_idle.patch](https://ratatoskr.run/linux-input/2010/10/3636232/attachment/0) (text/x-patch, 3542 bytes)
