Patch "bluetooth: btusb: Initialize .owner field of force_poll_sync_fops" has been added to the 6.6-stable tree

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

 



This is a note to let you know that I've just added the patch titled

    bluetooth: btusb: Initialize .owner field of force_poll_sync_fops

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     bluetooth-btusb-initialize-.owner-field-of-force_pol.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 35c4fc024061893b10ba82489fd29f9c632a2142
Author: Salah Triki <salah.triki@xxxxxxxxx>
Date:   Fri Feb 21 22:32:59 2025 +0100

    bluetooth: btusb: Initialize .owner field of force_poll_sync_fops
    
    [ Upstream commit cbf85b9cb80bec6345ffe0368dfff98386f4714f ]
    
    Initialize .owner field of force_poll_sync_fops to THIS_MODULE in order to
    prevent btusb from being unloaded while its operations are in use.
    
    Fixes: 800fe5ec302e ("Bluetooth: btusb: Add support for queuing during polling interval")
    Signed-off-by: Salah Triki <salah.triki@xxxxxxxxx>
    Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index c80b5aa7628ae..bc3f63f1ccd86 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -4230,6 +4230,7 @@ static ssize_t force_poll_sync_write(struct file *file,
 }
 
 static const struct file_operations force_poll_sync_fops = {
+	.owner		= THIS_MODULE,
 	.open		= simple_open,
 	.read		= force_poll_sync_read,
 	.write		= force_poll_sync_write,




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux