Files
linux/drivers/net/wan
Cong Wang d5c7c745f2 net/wan: fix a double free in x25_asy_open_tty()
When x25_asy_open() fails, it already cleans up by itself,
so its caller doesn't need to free the memory again.

It seems we still have to call x25_asy_free() to clear the SLF_INUSE
bit, so just set these pointers to NULL after kfree().

Reported-and-tested-by: [email protected]
Fixes: 3b780bed31 ("x25_asy: Free x25_asy on x25_asy_open() failure.")
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2018-12-30 20:22:48 -08:00
..
2018-09-18 20:08:08 -07:00
…
…
…
2018-09-03 22:14:41 -07:00
…
…
…
…
…
2017-11-01 12:11:02 +09:00
…
2018-09-18 20:08:08 -07:00
…
…
…
…