]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: client: change allocation requirements in smb2_compound_op
authorFredric Cover <fredric.cover.lkernel@gmail.com>
Wed, 29 Apr 2026 21:34:53 +0000 (14:34 -0700)
committerSteve French <stfrench@microsoft.com>
Wed, 29 Apr 2026 22:26:07 +0000 (17:26 -0500)
commit8e13b1b4093e0cbcb3dc2906c13b1fdc95cdf0a0
tree867d83f1de636affad7b3afcd342b5317cb9cf79
parent0cbc300257d9b399491909806777f504ec687c1d
smb: client: change allocation requirements in smb2_compound_op

Currently, smb2_compound_op() allocates
struct smb2_compound_vars *vars using GFP_ATOMIC, although
smb2_compound_op() can sleep when it calls compound_send_recv()
before vars is freed.

Allocate vars using GFP_KERNEL.

Signed-off-by: Fredric Cover <fredric.cover.lkernel@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/smb2inode.c