2009-01-30 18:21:18

by Vladislav Bolkhovitin

[permalink] [raw]
Subject: [PATCH][iSCSI-SCST]: Clean up netlink socket correctly

2.6.25 introduced netlink_socket_release(), to be used to clean up netlink sockets
correctly taking care of namespaces. Fix now wrong sock_release() call in iSCSI-SCST.

Signed-off-by: Arne Redlich <[email protected]>
Signed-off-by: Vladislav Bolkhovitin <[email protected]>

event.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

Index: iscsi-scst/kernel/event.c
===================================================================
--- iscsi-scst/kernel/event.c (revision 648)
+++ iscsi-scst/kernel/event.c (working copy)
@@ -142,6 +142,10 @@ int __init event_init(void)

void event_exit(void)
{
- if (nl)
- sock_release(nl->sk_socket);
+ netlink_kernel_release(nl);
}