Skip to content

Commit 929ed21

Browse files
committed
Merge tag '6.4-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6
Pull smb client fixes from Steve French: "Four small smb3 client fixes: - two small fixes suggested by kernel test robot - small cleanup fix - update Paulo's email address in the maintainer file" * tag '6.4-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6: cifs: address unused variable warning smb: delete an unnecessary statement smb3: missing null check in SMB2_change_notify smb3: update a reviewer email in MAINTAINERS file
2 parents 884fe9d + fdd7d1f commit 929ed21

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5139,7 +5139,7 @@ X: drivers/clk/clkdev.c
51395139

51405140
COMMON INTERNET FILE SYSTEM CLIENT (CIFS and SMB3)
51415141
M: Steve French <sfrench@samba.org>
5142-
R: Paulo Alcantara <pc@cjr.nz> (DFS, global name space)
5142+
R: Paulo Alcantara <pc@manguebit.com> (DFS, global name space)
51435143
R: Ronnie Sahlberg <lsahlber@redhat.com> (directory leases, sparse files)
51445144
R: Shyam Prasad N <sprasad@microsoft.com> (multichannel)
51455145
R: Tom Talpey <tom@talpey.com> (RDMA, smbdirect)

fs/smb/client/ioctl.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,11 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
321321
struct tcon_link *tlink;
322322
struct cifs_sb_info *cifs_sb;
323323
__u64 ExtAttrBits = 0;
324+
#ifdef CONFIG_CIFS_POSIX
325+
#ifdef CONFIG_CIFS_ALLOW_INSECURE_LEGACY
324326
__u64 caps;
327+
#endif /* CONFIG_CIFS_ALLOW_INSECURE_LEGACY */
328+
#endif /* CONFIG_CIFS_POSIX */
325329

326330
xid = get_xid();
327331

@@ -331,9 +335,9 @@ long cifs_ioctl(struct file *filep, unsigned int command, unsigned long arg)
331335
if (pSMBFile == NULL)
332336
break;
333337
tcon = tlink_tcon(pSMBFile->tlink);
334-
caps = le64_to_cpu(tcon->fsUnixInfo.Capability);
335338
#ifdef CONFIG_CIFS_POSIX
336339
#ifdef CONFIG_CIFS_ALLOW_INSECURE_LEGACY
340+
caps = le64_to_cpu(tcon->fsUnixInfo.Capability);
337341
if (CIFS_UNIX_EXTATTR_CAP & caps) {
338342
__u64 ExtAttrMask = 0;
339343
rc = CIFSGetExtAttr(xid, tcon,

fs/smb/client/smb2ops.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,6 @@ parse_server_interfaces(struct network_interface_info_ioctl_rsp *buf,
618618
* Add a new one instead
619619
*/
620620
spin_lock(&ses->iface_lock);
621-
iface = niface = NULL;
622621
list_for_each_entry_safe(iface, niface, &ses->iface_list,
623622
iface_head) {
624623
ret = iface_cmp(iface, &tmp_iface);

fs/smb/client/smb2pdu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3725,7 +3725,7 @@ SMB2_change_notify(const unsigned int xid, struct cifs_tcon *tcon,
37253725
if (*out_data == NULL) {
37263726
rc = -ENOMEM;
37273727
goto cnotify_exit;
3728-
} else
3728+
} else if (plen)
37293729
*plen = le32_to_cpu(smb_rsp->OutputBufferLength);
37303730
}
37313731

0 commit comments

Comments
 (0)