Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Fredric Cover and committed by
Steve French
8e13b1b4 0cbc3002

+1 -1
+1 -1
fs/smb/client/smb2inode.c
··· 230 230 num_rqst = 0; 231 231 server = cifs_pick_channel(ses); 232 232 233 - vars = kzalloc_obj(*vars, GFP_ATOMIC); 233 + vars = kzalloc_obj(*vars, GFP_KERNEL); 234 234 if (vars == NULL) { 235 235 rc = -ENOMEM; 236 236 goto out;