aboutsummaryrefslogtreecommitdiffstats
path: root/fs/smb/client/smb2inode.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2025-09-06 10:17:35 +0200
committerWolfram Sang <wsa+renesas@sang-engineering.com>2025-09-06 10:17:35 +0200
commitd035b4baebfc5112b128b66cafd45d2522a9c8f1 (patch)
treefc96e96e81597068c9a869c679d18a1a44394164 /fs/smb/client/smb2inode.c
parentLinux 6.17-rc3 (diff)
parenti2c: rtl9300: remove broken SMBus Quick operation support (diff)
downloadlinux-d035b4baebfc5112b128b66cafd45d2522a9c8f1.tar.gz
linux-d035b4baebfc5112b128b66cafd45d2522a9c8f1.zip
Merge tag 'i2c-host-fixes-6.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux into i2c/for-current
i2c-host-fixes for v6.17-rc5 - i801: fix device IDs - in rtl9300: - fix channel number check in probe - check data length boundaries in xfer - drop unsupported SMBus quick operation
Diffstat (limited to 'fs/smb/client/smb2inode.c')
-rw-r--r--fs/smb/client/smb2inode.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/smb/client/smb2inode.c b/fs/smb/client/smb2inode.c
index 2a0316c514e4..31c13fb5b85b 100644
--- a/fs/smb/client/smb2inode.c
+++ b/fs/smb/client/smb2inode.c
@@ -207,8 +207,10 @@ replay_again:
server = cifs_pick_channel(ses);
vars = kzalloc(sizeof(*vars), GFP_ATOMIC);
- if (vars == NULL)
- return -ENOMEM;
+ if (vars == NULL) {
+ rc = -ENOMEM;
+ goto out;
+ }
rqst = &vars->rqst[0];
rsp_iov = &vars->rsp_iov[0];
@@ -864,6 +866,7 @@ finished:
smb2_should_replay(tcon, &retries, &cur_sleep))
goto replay_again;
+out:
if (cfile)
cifsFileInfo_put(cfile);