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

Commit 84e2306e authored by Mathias Krause's avatar Mathias Krause Committed by David S. Miller
Browse files

irda: use GFP_KERNEL in irda_create()



irda_create() is called from user context only, therefore has no need
for GFP_ATOMIC.

Signed-off-by: default avatarMathias Krause <minipli@googlemail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 22251c73
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1120,7 +1120,7 @@ static int irda_create(struct net *net, struct socket *sock, int protocol,
	}

	/* Allocate networking socket */
	sk = sk_alloc(net, PF_IRDA, GFP_ATOMIC, &irda_proto);
	sk = sk_alloc(net, PF_IRDA, GFP_KERNEL, &irda_proto);
	if (sk == NULL)
		return -ENOMEM;