Skip to content

Commit 8e13b1b

Browse files
Fredric-Coversmfrench
authored andcommitted
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>
1 parent 0cbc300 commit 8e13b1b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/smb/client/smb2inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ static int smb2_compound_op(const unsigned int xid, struct cifs_tcon *tcon,
230230
num_rqst = 0;
231231
server = cifs_pick_channel(ses);
232232

233-
vars = kzalloc_obj(*vars, GFP_ATOMIC);
233+
vars = kzalloc_obj(*vars, GFP_KERNEL);
234234
if (vars == NULL) {
235235
rc = -ENOMEM;
236236
goto out;

0 commit comments

Comments
 (0)