summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFredric Cover <fredric.cover.lkernel@gmail.com>2026-04-30 00:34:53 +0300
committerSteve French <stfrench@microsoft.com>2026-04-30 01:26:07 +0300
commit8e13b1b4093e0cbcb3dc2906c13b1fdc95cdf0a0 (patch)
tree867d83f1de636affad7b3afcd342b5317cb9cf79
parent0cbc300257d9b399491909806777f504ec687c1d (diff)
downloadlinux-8e13b1b4093e0cbcb3dc2906c13b1fdc95cdf0a0.tar.xz
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>
-rw-r--r--fs/smb/client/smb2inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/smb2inode.c b/fs/smb/client/smb2inode.c
index c6dd282fc3a9..286912616c73 100644
--- a/fs/smb/client/smb2inode.c
+++ b/fs/smb/client/smb2inode.c
@@ -230,7 +230,7 @@ replay_again:
num_rqst = 0;
server = cifs_pick_channel(ses);
- vars = kzalloc_obj(*vars, GFP_ATOMIC);
+ vars = kzalloc_obj(*vars, GFP_KERNEL);
if (vars == NULL) {
rc = -ENOMEM;
goto out;