]> git.baikalelectronics.ru Git - kernel.git/commit
vsock: Make transport the proto owner
authorAndy King <acking@vmware.com>
Thu, 1 May 2014 22:20:43 +0000 (15:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 May 2014 17:13:50 +0000 (13:13 -0400)
commit0cb0fd4f62677603a309c03c7a9858c363c6a4fb
tree2d53ba2bdafac830dedc783d455e8c937cb8e2e7
parent53b040ab4486a0925dafed47b10b9e6a2687a0b7
vsock: Make transport the proto owner

Right now the core vsock module is the owner of the proto family. This
means there's nothing preventing the transport module from unloading if
there are open sockets, which results in a panic. Fix that by allowing
the transport to be the owner, which will refcount it properly.

Includes version bump to 1.0.1.0-k

Passes checkpatch this time, I swear...

Acked-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Andy King <acking@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/af_vsock.h
net/vmw_vsock/af_vsock.c