projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
661e4e3
)
sctp: GFP_ATOMIC is not needed in sctp_setsockopt_events
author
Marcelo Ricardo Leitner
<marcelo.leitner@gmail.com>
Mon, 8 Jan 2018 21:02:27 +0000
(19:02 -0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 10 Jan 2018 19:53:22 +0000
(14:53 -0500)
So replace it with GFP_USER and also add __GFP_NOWARN.
Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/socket.c
patch
|
blob
|
history
diff --git
a/net/sctp/socket.c
b/net/sctp/socket.c
index
b4fb6e4
..
54c0467
100644
(file)
--- a/
net/sctp/socket.c
+++ b/
net/sctp/socket.c
@@
-2277,7
+2277,7
@@
static int sctp_setsockopt_events(struct sock *sk, char __user *optval,
if (asoc && sctp_outq_is_empty(&asoc->outqueue)) {
event = sctp_ulpevent_make_sender_dry_event(asoc,
- GFP_
ATOMIC
);
+ GFP_
USER | __GFP_NOWARN
);
if (!event)
return -ENOMEM;