Re: [PATCH] Bluetooth: Fix hci_conn reference counting for auto-connections

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

 



Hi Marcel,

On Fri, Aug 15, 2014, Marcel Holtmann wrote:
> > 	params = hci_conn_params_lookup(hdev, &conn->dst, conn->dst_type);
> > -	if (params)
> > +	if (params) {
> > 		list_del_init(&params->action);
> > +		if (params && params->conn) {
> 
> don't we already know that params is valid here?

Indeed we do. Silly copy-paste mistake from another piece of code where
we didn't already know params was != NULL. I'll send a v2.

Johan
--
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