Re: [RFC][-rc9 PATCH] Bluetooth: fix oops in rfcomm

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dave Young
Date: Monday, July 14, 2008 - 12:06 am

On Mon, Jul 14, 2008 at 2:23 PM, Vegard Nossum <vegard.nossum@gmail.com> wrote:

I think they need some locking indeed, but I guess rfcomm_dev_lock is
not the one for it.

Another problem, please see the following code:

        /* Refcount should only hit zero when called from rfcomm_dev_del()
           which will have taken us off the list. Everything else are
           refcounting bugs. */
        BUG_ON(!list_empty(&dev->list));

Maybe replace it with BUG_ON(!test_bit(RFCOMM_TTY_RELEASED, &dev->flags))?
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC][-rc9 PATCH] Bluetooth: fix oops in rfcomm, Vegard Nossum, (Sun Jul 13, 10:23 am)
Re: [RFC][-rc9 PATCH] Bluetooth: fix oops in rfcomm, Dave Young, (Sun Jul 13, 7:41 pm)
Re: [RFC][-rc9 PATCH] Bluetooth: fix oops in rfcomm, Vegard Nossum, (Sun Jul 13, 11:23 pm)
Re: [RFC][-rc9 PATCH] Bluetooth: fix oops in rfcomm, Dave Young, (Mon Jul 14, 12:06 am)