From: Marcelo Ricardo Leitner Date: Mon, 8 Jan 2018 21:02:27 +0000 (-0200) Subject: sctp: GFP_ATOMIC is not needed in sctp_setsockopt_events X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2e83acb970684008baee471427270c029a76ddbd;p=openwrt%2Fstaging%2Fblogic.git sctp: GFP_ATOMIC is not needed in sctp_setsockopt_events So replace it with GFP_USER and also add __GFP_NOWARN. Signed-off-by: Marcelo Ricardo Leitner Signed-off-by: David S. Miller --- diff --git a/net/sctp/socket.c b/net/sctp/socket.c index b4fb6e4886d2..54c046783a89 100644 --- 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;