Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e63a15ec authored by Gustavo Padovan's avatar Gustavo Padovan
Browse files

Bluetooth: Use GFP_KERNEL in user context



The allocation in mgmt_control() code are in user context and not locked
by any spinlock, so it's not recommended the use of GFP_ATOMIC there.

Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 1322901d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1581,7 +1581,7 @@ int mgmt_control(struct sock *sk, struct msghdr *msg, size_t msglen)
	if (msglen < sizeof(*hdr))
		return -EINVAL;

	buf = kmalloc(msglen, GFP_ATOMIC);
	buf = kmalloc(msglen, GFP_KERNEL);
	if (!buf)
		return -ENOMEM;