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 is f6a9a7ce8b ("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 commit 4c133b9da3.

Signed-off-by: Luiz Capitulino <luizcap@redhat.com>
This commit is contained in:
Luiz Capitulino 2025-07-02 15:13:42 -04:00
parent 6e54f3368c
commit f13b01ab2c
1 changed files with 0 additions and 4 deletions

View File

@ -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));