Searched hist:f6ebfc24e78d99ebfa0f8d1761b1d77b733dcbb9 (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/bluetooth/ |
H A D | hci_intel.c | diff f6ebfc24e78d99ebfa0f8d1761b1d77b733dcbb9 Mon Jul 23 05:53:21 CEST 2018 Jia-Ju Bai <baijiaju1990@gmail.com> bluetooth: hci_intel: Replace GFP_ATOMIC with GFP_KERNEL in inject_cmd_complete()
inject_cmd_complete() is only called by intel_dequeue(), which is never called in atomic context.
inject_cmd_complete() calls bt_skb_alloc() with GFP_ATOMIC, which is not necessary. GFP_ATOMIC can be replaced with GFP_KERNEL.
This is found by a static analysis tool named DCNS written by myself. I also manually check the kernel code before reporting it.
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
|