From: Christian Brauner Date: Mon, 23 Aug 2021 15:13:55 +0000 (+0200) Subject: ksmbd: ensure error is surfaced in set_file_basic_info() X-Git-Tag: accepted/tizen/unified/20230118.172025~6404^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb5784f0c6efbe0db720ad7e34e097cea51c1afc;p=platform%2Fkernel%2Flinux-rpi.git ksmbd: ensure error is surfaced in set_file_basic_info() It seems the error was accidently ignored until now. Make sure it is surfaced. Cc: Steve French Cc: Christoph Hellwig Cc: Namjae Jeon Cc: Hyunchul Lee Cc: Sergey Senozhatsky Cc: linux-cifs@vger.kernel.org Signed-off-by: Christian Brauner Signed-off-by: Namjae Jeon Signed-off-by: Steve French --- diff --git a/fs/ksmbd/smb2pdu.c b/fs/ksmbd/smb2pdu.c index 1b0a924..1148e52a 100644 --- a/fs/ksmbd/smb2pdu.c +++ b/fs/ksmbd/smb2pdu.c @@ -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,