Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753785AbYAXBS2 (ORCPT ); Wed, 23 Jan 2008 20:18:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752766AbYAXBSR (ORCPT ); Wed, 23 Jan 2008 20:18:17 -0500 Received: from nz-out-0506.google.com ([64.233.162.225]:26948 "EHLO nz-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752764AbYAXBSQ (ORCPT ); Wed, 23 Jan 2008 20:18:16 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=rfJLDv/5INaOoj1Hd+CpzCbpcXFgtZgE+QV8XX77CXPLLKqk1bses7uQmT10UMgQcWMO23Cxl0VdR1m8hr2yPYyajiWCvOcEpTRmQN+5hBa5U6vy2W8CdYNWh8XtvAqPT/IRhls6lLNC/NuCPNRRiOInHf1RXp/JVjFbZwlgE24= Date: Thu, 24 Jan 2008 09:19:26 +0800 From: Dave Young To: Andrew Morton Cc: Marcel Holtmann , davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bluez-devel@lists.sourceforge.net, cornelia.huck@de.ibm.com, gombasg@sztaki.hu, htejun@gmail.com, viro@zeniv.linux.org.uk, kay.sievers@vrfy.org, greg@kroah.com Subject: Re: [PATCH] bluetooth : move children of connection device to NULL before connection down Message-ID: <20080124011926.GA2950@darkstar.te-china.tietoenator.com> References: <20080121044913.GA4162@darkstar.te-china.tietoenator.com> <20080121045401.GB4162@darkstar.te-china.tietoenator.com> <20080121.031417.171098597.davem@davemloft.net> <1200982696.7978.148.camel@aeonflux> <20080123140629.c24d4d68.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080123140629.c24d4d68.akpm@linux-foundation.org> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2418 Lines: 64 On Wed, Jan 23, 2008 at 02:06:29PM -0800, Andrew Morton wrote: > > On Tue, 22 Jan 2008 07:18:16 +0100 Marcel Holtmann wrote: > > Hi Dave, > > > > > > Add people missed in cc-list. > > > > > > Thanks Dave for your continued efforts on Bluetooth bugs like this. > > > > > > Marcel, are you going to review/ACK/integrate/push-upstream/whatever > > > any of these Bluetooth patches? > > > > > > It hasn't been getting much love from you as of late, you are one of > > > the listed maintainers, and I don't want to lose any of Dave's > > > valuable bug fixing work. > > > > I will be fully back in business next week. Just got stuck in a project > > that needed 200% of my time to get it going. > > > > These patches in -mm: > > bluetooth-hidp_process_hid_control-remove-unnecessary-parameter-dealing.patch > bluetooth-uninlining.patch > drivers-bluetooth-bpa10xc-fix-memleak.patch > drivers-bluetooth-btsdioc-fix-double-free.patch > bluetooth-blacklist-another-broadcom-bcm2035-device.patch > bluetooth-rfcomm-tty_close-before-destruct.patch > hci_ldisc-fix-null-pointer-deref.patch > > could benefit from some attention please. Hi, andrew For the patch bluetooth-rfcomm-tty_close-before-destruct.patch I have to rethinkabout it. 1. The subject is not correct, should be rfcomm-tty-destroy-before-tty_close. 2. Don't know what I was thinking that time, could you replace it with the following better one? Sorry for that. --- rfcomm dev could be deleted in tty_hangup, so we must not call rfcomm_dev_del again to prevent from destroying rfcomm dev before tty close. Signed-off-by: Dave Young --- net/bluetooth/rfcomm/tty.c | 2 ++ 1 file changed, 2 insertions(+) diff -upr a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c --- a/net/bluetooth/rfcomm/tty.c 2008-01-24 09:03:59.000000000 +0800 +++ b/net/bluetooth/rfcomm/tty.c 2008-01-24 09:03:59.000000000 +0800 @@ -429,6 +429,8 @@ static int rfcomm_release_dev(void __use if (dev->tty) tty_vhangup(dev->tty); + if (!test_bit(RFCOMM_RELEASE_ONHUP, &dev->flags)) + rfcomm_dev_del(dev); rfcomm_dev_del(dev); rfcomm_dev_put(dev); return 0; -- 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/