[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a8e1da0711051912r34c6ad68jc420ceb8655407b7@mail.gmail.com>
Date: Tue, 6 Nov 2007 11:12:09 +0800
From: "Dave Young" <hidave.darkstar@...il.com>
To: "Marcel Holtmann" <marcel@...tmann.org>
Cc: linux-kernel@...r.kernel.org, bluez-devel@...ts.sf.net
Subject: Re: [PATCH]bluetooth rfcomm_dev refcount bug fix
On 11/5/07, Marcel Holtmann <marcel@...tmann.org> wrote:
> Hi Dave,
>
> > In the rfcomm_tty_hangup the rfcomm_dev refcnt should be dropped later.
> >
> > If rfcomm_dev is destructed in tty_hangup function, then the later tty_close function will oops.
>
> your patch removes the complete release on hangup logic. That can't be
> right. I think the problem is with calling tty_vhangup() and then
> decrementing the reference count. In case we call tty_vhangup and we
> have release on hangup we should not delete the device here. What about
> the attached patch? Does it solve it?
>
How about this patch (attached), it works for me as well.
Regards
dave
Download attachment "diff.rfcomm.1" of type "application/octet-stream" (429 bytes)
Powered by blists - more mailing lists