Skip to content

Commit

Permalink
ksmbd: ensure error is surfaced in set_file_basic_info()
Browse files Browse the repository at this point in the history
It seems the error was accidently ignored until now. Make sure it is
surfaced.

Cc: Steve French <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: Namjae Jeon <[email protected]>
Cc: Hyunchul Lee <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: [email protected]
Signed-off-by: Christian Brauner <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
  • Loading branch information
Christian Brauner authored and Steve French committed Sep 4, 2021
1 parent 9467a0c commit eb5784f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ksmbd/smb2pdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -5531,7 +5531,7 @@ static int set_file_basic_info(struct ksmbd_file *fp, char *buf,
rc = notify_change(user_ns, dentry, &attrs, NULL);
inode_unlock(inode);
}
return 0;
return rc;
}

static int set_file_allocation_info(struct ksmbd_work *work,
Expand Down

0 comments on commit eb5784f

Please sign in to comment.