diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2014-07-13 11:22:25 -0400 |
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-07-13 14:39:34 -0400 |
| commit | 395365eaf125e53b9d7e1c11c91ee01bf5a4b792 (patch) | |
| tree | dff0a21f5dad4410a01babe4805efc22b0651090 /net/bluetooth | |
| parent | 4d6c705bbd9e845bcfbe119bb017a5653c0d9efb (diff) | |
Bluetooth: Allocate struct inquiry_entry with GFP_KERNEL
The allocation of inquiry cache entries is triggered as a result of
processing HCI events. Since the processing is done in the context
of a workqueue, there is no needed to allocate with GFP_ATOMIC in
that case. Switch it to GFP_KERNEL.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth')
| -rw-r--r-- | net/bluetooth/hci_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 188bfd3d7c43..172041e2b15a 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
| @@ -2088,7 +2088,7 @@ u32 hci_inquiry_cache_update(struct hci_dev *hdev, struct inquiry_data *data, | |||
| 2088 | } | 2088 | } |
| 2089 | 2089 | ||
| 2090 | /* Entry not in the cache. Add new one. */ | 2090 | /* Entry not in the cache. Add new one. */ |
| 2091 | ie = kzalloc(sizeof(struct inquiry_entry), GFP_ATOMIC); | 2091 | ie = kzalloc(sizeof(struct inquiry_entry), GFP_KERNEL); |
| 2092 | if (!ie) { | 2092 | if (!ie) { |
| 2093 | flags |= MGMT_DEV_FOUND_CONFIRM_NAME; | 2093 | flags |= MGMT_DEV_FOUND_CONFIRM_NAME; |
| 2094 | goto done; | 2094 | goto done; |
