Revert "mm: fix BUG splat with kvmalloc + GFP_ATOMIC"
JIRA: https://issues.redhat.com/browse/RHEL-100920 Upstream Status: RHEL-only We applied this commit twice, the first one isf6a9a7ce8b
("mm: fix BUG splat with kvmalloc + GFP_ATOMIC"). But note that this is not a serious issue since we don't change any state (we're just checking 'flags' twice). This reverts commit4c133b9da3
. Signed-off-by: Luiz Capitulino <luizcap@redhat.com>
This commit is contained in:
parent
6e54f3368c
commit
f13b01ab2c
|
@ -614,10 +614,6 @@ void *kvmalloc_node(size_t size, gfp_t flags, int node)
|
|||
if (!gfpflags_allow_blocking(flags))
|
||||
return NULL;
|
||||
|
||||
/* non-sleeping allocations are not supported by vmalloc */
|
||||
if (!gfpflags_allow_blocking(flags))
|
||||
return NULL;
|
||||
|
||||
/* Don't even allow crazy sizes */
|
||||
if (unlikely(size > INT_MAX)) {
|
||||
WARN_ON_ONCE(!(flags & __GFP_NOWARN));
|
||||
|
|
Loading…
Reference in New Issue