(1/13) appletalk - ddp set socket owner
Subsystems (2)
PATCH 1/1 (1/13) appletalk - ddp set socket owner
DDP needs to set the socket owner, without this it is possible to OOPS. What happens is a socket is closed, but data is outstanding so it is orphaned to be cleaned up later. Then if appletalk module is unloaded, the timer code ends up referencing dead memory.
By setting the owner field, the module can't be unloaded.
Path applies to 2.6.0-test4.
net/appletalk/ddp.c +2 -0
@@ -983,6 +983,8 @@ rc =0 ; sock->ops = &atalk_dgram_ops;sock_init_data (sock, sk); +sk_set_owner (sk,THIS_MODULE ); +/* Checksums on by default */ sk->sk_zapped =1 ; out: