commit | 0ccc22f425e56c4ede9c66f1945846de8ac1f352 | [log] [tgz] |
---|---|---|
author | WANG Cong <xiyou.wangcong@gmail.com> | Thu Jun 22 15:29:33 2017 -0700 |
committer | David S. Miller <davem@davemloft.net> | Fri Jun 23 14:08:40 2017 -0400 |
tree | 096fe914e9a99b0bf3feefae7825a20a02f9b6ef | |
parent | a5cb659bbc1c8644efa0c3138a757a1e432a4880 [diff] |
sit: use __GFP_NOWARN for user controlled allocation The memory allocation size is controlled by user-space, if it is too large just fail silently and return NULL, not to mention there is a fallback allocation later. Reported-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Tested-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>