Return-Path: Date: Fri, 12 Jul 2013 11:18:52 +0100 From: Gustavo Padovan To: Gianluca Anzolin Cc: linux-bluetooth@vger.kernel.org, marcel@holtmann.org Subject: Re: [PATCH v2] Fix refcounting issues in rfcomm/tty.c Message-ID: <20130712101852.GB2065@joana> References: <20130711190150.GA24422@debian.seek.priv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20130711190150.GA24422@debian.seek.priv> List-ID: Hi Gianluca, * Gianluca Anzolin [2013-07-11 21:01:50 +0200]: > Hello, > > This is a second version of the previous patches I sent to linux-bluetooth > list. I grouped the two patches together since they are related. > > I fixed some bugs in my previous attempt: If you are fixing different bugs I want one patch for each fix. > 1. skb_queue_purge is now called in the cleanup method to avoid a circular > dependency between the dev struct and dlc struct. > > 2. refcomm_dev_release should check REFCOMM_TTY_RELEASED instead of > REFCOMM_RELEASE_ONHUP. > > I checked with both bluez4 and bluez5 and everything works as expected. Please send a proper inline patch with git-format-patch and git-send-email. Also get rid of all BT_DBG changes you've made, read the dynamic debug doc to learn how to print the function name when debugging. And if you are moving functions around please do this in a separated patch. Gustavo