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.

Merge tag '6.15-rc6-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6

Pull smb client fixes from Steve French:

- Fix memory leak in mkdir error path

- Fix max rsize miscalculation after channel reconnect

* tag '6.15-rc6-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
smb: client: fix zero rsize error messages
smb: client: fix memory leak during error handling for POSIX mkdir

+5 -3
+4 -2
fs/smb/client/file.c
··· 160 160 server = cifs_pick_channel(tlink_tcon(req->cfile->tlink)->ses); 161 161 rdata->server = server; 162 162 163 - cifs_negotiate_rsize(server, cifs_sb->ctx, 164 - tlink_tcon(req->cfile->tlink)); 163 + if (cifs_sb->ctx->rsize == 0) { 164 + cifs_negotiate_rsize(server, cifs_sb->ctx, 165 + tlink_tcon(req->cfile->tlink)); 166 + } 165 167 166 168 rc = server->ops->wait_mtu_credits(server, cifs_sb->ctx->rsize, 167 169 &size, &rdata->credits);
+1 -1
fs/smb/client/smb2pdu.c
··· 2968 2968 /* Eventually save off posix specific response info and timestamps */ 2969 2969 2970 2970 err_free_rsp_buf: 2971 - free_rsp_buf(resp_buftype, rsp); 2971 + free_rsp_buf(resp_buftype, rsp_iov.iov_base); 2972 2972 kfree(pc_buf); 2973 2973 err_free_req: 2974 2974 cifs_small_buf_release(req);