CONNECTOR: don't touch queue dev after decrement of ref count
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 15 Jan 2008 23:18:12 +0000 (01:18 +0200)
committerAdrian Bunk <bunk@kernel.org>
Tue, 15 Jan 2008 23:18:12 +0000 (01:18 +0200)
commitf9fdf12742cdc18ca30ff6c3bec3bf1748deffa7
treeaffa007cc2d66bf7b2e9b100f651d28ddef993f6
parent2f248cf37ebe3cf9892905a5356f6f031751a477
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: Adrian Bunk <bunk@kernel.org>
drivers/connector/cn_queue.c