netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND net] nfc: use GFP_USER for user-controlled kmalloc
@ 2016-01-26 17:53 Cong Wang
       [not found] ` <1453830820-27104-1-git-send-email-xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Cong Wang @ 2016-01-26 17:53 UTC (permalink / raw)
  To: netdev
  Cc: dvyukov, linux-wireless, Cong Wang, Lauro Ramos Venancio,
	Aloisio Almeida Jr, Samuel Ortiz

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
---
 net/nfc/llcp_commands.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/nfc/llcp_commands.c b/net/nfc/llcp_commands.c
index 3621a90..5d94055 100644
--- a/net/nfc/llcp_commands.c
+++ b/net/nfc/llcp_commands.c
@@ -729,7 +729,7 @@ int nfc_llcp_send_ui_frame(struct nfc_llcp_sock *sock, u8 ssap, u8 dsap,
 	if (local == NULL)
 		return -ENODEV;
 
-	msg_data = kzalloc(len, GFP_KERNEL);
+	msg_data = kzalloc(len, GFP_USER | __GFP_NOWARN);
 	if (msg_data == NULL)
 		return -ENOMEM;
 
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-01-29 18:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-26 17:53 [PATCH RESEND net] nfc: use GFP_USER for user-controlled kmalloc Cong Wang
     [not found] ` <1453830820-27104-1-git-send-email-xiyou.wangcong-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-01-26 22:55   ` Julian Calaby
     [not found]     ` <CAGRGNgV7MUXdk+e8Arx05yiWX6owei5dmnFQ-TBfs55jfy+qBw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-01-26 23:12       ` Cong Wang
     [not found]         ` <CAM_iQpWawou1Z_NnAzM5TxH7TUQUCAhf+k96PErNV8q_SOCShw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-01-26 23:15           ` Julian Calaby
2016-01-27  2:23         ` Eric Dumazet
     [not found]           ` <1453861388.11327.51.camel-XN9IlZ5yJG9HTL0Zs8A6p/gx64E7kk8eUsxypvmhUTTZJqsBc5GL+g@public.gmane.org>
2016-01-27 19:50             ` Cong Wang
     [not found]               ` <CAM_iQpXOEQhwPp6HD3L16DV1tygEyKNoHH+zHkukux7zYzaJeA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-01-27 21:05                 ` Eric Dumazet
2016-01-29 18:21                   ` Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).