Skip to content
Commit 4965291a authored by Jarek Poplawski's avatar Jarek Poplawski Committed by David S. Miller
Browse files

[ROSE/AX25] af_rose: rose_release() fix



rose_release() doesn't release sockets properly, e.g. it skips
sock_orphan(), so OOPSes are triggered in sock_def_write_space(),
which was observed especially while ROSE skbs were kfreed from
ax25_frames_acked(). There is also sock_hold() and lock_sock() added -
similarly to ax25_release(). Thanks to Bernard Pidoux for substantial
help in debugging this problem.

Signed-off-by: default avatarJarek Poplawski <jarkao2@gmail.com>
Reported-and-tested-by: default avatarBernard Pidoux <bpidoux@free.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d43c7b37
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment