Re: [PATCHv4 02/17] Bluetooth: A2MP: Create amp_mgr global list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mat,

On Thu, Sep 13, 2012 at 08:02:58AM -0700, Mat Martineau wrote:
...

> >@@ -550,6 +558,10 @@ static struct amp_mgr *amp_mgr_create(struct l2cap_conn *conn)
> >
> >	conn->hcon->amp_mgr = mgr;
> >
> >+	mutex_lock(&amp_mgr_list_lock);
> >+	list_add(&mgr->list, &amp_mgr_list);
> >+	mutex_unlock(&amp_mgr_list_lock);
> >+
> >	kref_init(&mgr->kref);
> 
> Should the reference count be initialized before adding to the list?

will change this.

Best regards 
Andrei Emeltchenko 

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux