Re: [PATCH] CONNECTOR: don't touch queue dev after decrement ofref count

From: David Miller
Date: Wed Jan 09 2008 - 02:45:11 EST


From: Li Zefan <lizf@xxxxxxxxxxxxxx>
Date: Wed, 09 Jan 2008 13:44:07 +0800

>
> cn_queue_free_callback() will touch 'dev'(i.e. cbq->pdev),
> so it should be called before atomic_dec(&dev->refcnt).
>
> Signed-off-by: Li Zefan <lizf@xxxxxxxxxxxxxx>

Excellent catch, patch applied.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/