Bluetooth: Use GFP_KERNEL in hci_add_adv_entry()
Subsystems (2)
PATCH 1/1 Bluetooth: Use GFP_KERNEL in hci_add_adv_entry()
This function is not called in interrupt context anymore, so it should use GFP_KERNEL to allocate memory.
Signed-off-by Andre Guedes <[email protected]>
--- net/bluetooth/hci_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/bluetooth/hci_core.c +1 -1
@@ -1553,7 +1553,7 @@ int hci_add_adv_entry(struct hci_dev *hdev,if (hci_find_adv_entry (hdev, &ev->bdaddr))return 0 ; - entry =kzalloc (sizeof (*entry),GFP_ATOMIC ); + entry =kzalloc (sizeof (*entry),GFP_KERNEL );if (!entry)return -ENOMEM ;
Signature · 1 line
1.7.9
Hi Andre,
Quoted 7 lines
This function is not called in interrupt context anymore, so it should use
GFP_KERNELto allocate memory.Signed-off-by Andre Guedes <[email protected]>--- net/bluetooth/hci_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Acked-by Marcel Holtmann <[email protected]>
Regards
Marcel
Hi Andre,
Quoted 7 lines · Andre Guedes
This function is not called in interrupt context anymore, so it should use
GFP_KERNELto allocate memory.Signed-off-by Andre Guedes <[email protected]>--- net/bluetooth/hci_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
The patch has been applied to my bluetooth-next tree. Thanks.
Johan