Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756227AbZA3SVS (ORCPT ); Fri, 30 Jan 2009 13:21:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755526AbZA3SUY (ORCPT ); Fri, 30 Jan 2009 13:20:24 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:54770 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755478AbZA3SUW (ORCPT ); Fri, 30 Jan 2009 13:20:22 -0500 Message-ID: <498344F0.3010109@vlnb.net> Date: Fri, 30 Jan 2009 21:20:32 +0300 From: Vladislav Bolkhovitin User-Agent: Thunderbird 2.0.0.17 (X11/20081009) MIME-Version: 1.0 To: linux-scsi@vger.kernel.org CC: linux-kernel@vger.kernel.org, scst-devel@lists.sourceforge.net Subject: [PATCH][iSCSI-SCST]: Clean up netlink socket correctly Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX19JvxfPQfodg+D1v1YWxODGS52XnYIk/Ywcxme 2dIxaVBX2zBK4xoQLQq7ITAxUZ4MthzXppJNW8813JxIqnyvi/ geyfOgBQa/uIS54Mq+HEw== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 932 Lines: 27 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 Signed-off-by: Vladislav Bolkhovitin 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); } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/