Re: [PATCH] Bluetooth: btusb: Remove redundant call to btusb_free_frags()

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

 



Hi Johan,

> The btusb_disconnect() callback calls hci_unregister_dev() which in turn
> calls btusb_close() if the HCI device is powered. The btusb_close()
> function in turn will call btusb_free_frags(). It's therefore
> unnecessary to have another call to btusb_free_frags() in the
> btusb_disconnect() function. Besides the redundancy the second call
> seems to also cause some strange stability issues which this patch then
> also fixes.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> ---
> drivers/bluetooth/btusb.c | 1 -
> 1 file changed, 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

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