diff options
-rw-r--r-- | drivers/connector/cn_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/connector/cn_queue.c b/drivers/connector/cn_queue.c index 296f51002b55..12ceed54ab18 100644 --- a/drivers/connector/cn_queue.c +++ b/drivers/connector/cn_queue.c | |||
@@ -99,8 +99,8 @@ int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id | |||
99 | spin_unlock_bh(&dev->queue_lock); | 99 | spin_unlock_bh(&dev->queue_lock); |
100 | 100 | ||
101 | if (found) { | 101 | if (found) { |
102 | atomic_dec(&dev->refcnt); | ||
103 | cn_queue_free_callback(cbq); | 102 | cn_queue_free_callback(cbq); |
103 | atomic_dec(&dev->refcnt); | ||
104 | return -EINVAL; | 104 | return -EINVAL; |
105 | } | 105 | } |
106 | 106 | ||