From owner-freebsd-bugs@FreeBSD.ORG Thu Nov 17 05:00:32 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5406F16A41F for ; Thu, 17 Nov 2005 05:00:32 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1722343D49 for ; Thu, 17 Nov 2005 05:00:32 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAH50Vhk019330 for ; Thu, 17 Nov 2005 05:00:31 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAH50VO7019329; Thu, 17 Nov 2005 05:00:31 GMT (envelope-from gnats) Date: Thu, 17 Nov 2005 05:00:31 GMT Message-Id: <200511170500.jAH50VO7019329@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Rostislav Krasny Cc: Subject: Re: kern/89085 : [smbfs] [panic] Running 'kldunload smbfs' without 'smbutil logout' always panicing the system X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rostislav Krasny List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2005 05:00:32 -0000 The following reply was made to PR kern/89085; it has been noted by GNATS. From: Rostislav Krasny To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/89085 : [smbfs] [panic] Running 'kldunload smbfs' without 'smbutil logout' always panicing the system Date: Thu, 17 Nov 2005 06:57:45 +0200 Following patch of src/sys/netsmb/smb_dev.c fixes the panic: --- smb_dev.c.orig Mon Aug 15 11:27:48 2005 +++ /usr/src/sys/netsmb/smb_dev.c Thu Nov 17 05:14:23 2005 @@ -346,7 +346,8 @@ case MOD_UNLOAD: smb_iod_done(); error = smb_sm_done(); - error = 0; + if (error != 0) + break; EVENTHANDLER_DEREGISTER(dev_clone, nsmb_dev_tag); printf("netsmb_dev: unloaded\n"); break;