[CONNECTOR]: Don't touch queue dev after decrement of ref count.
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 9 Jan 2008 07:44:44 +0000 (23:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jan 2008 07:44:44 +0000 (23:44 -0800)
commitcf585ae8ae9ac7287a6d078425ea32f22bf7f1f7
tree6345d5ca0ae09d48ce130cdf4c11c47cf5f8489a
parent9d3e44425e3498eb33f25d94392b4fd0d56a5176
[CONNECTOR]: Don't touch queue dev after decrement of ref count.

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@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/connector/cn_queue.c