mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
NFC: Atomic socket allocation
rawsock_create() is called with preemption disabled, so we should not sleep. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
94a098da42
commit
db81a62451
@ -310,7 +310,7 @@ static int rawsock_create(struct net *net, struct socket *sock,
|
||||
|
||||
sock->ops = &rawsock_ops;
|
||||
|
||||
sk = sk_alloc(net, PF_NFC, GFP_KERNEL, nfc_proto->proto);
|
||||
sk = sk_alloc(net, PF_NFC, GFP_ATOMIC, nfc_proto->proto);
|
||||
if (!sk)
|
||||
return -ENOMEM;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user