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 'v6.19rc8-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6

Pull smb client fixes from Steve French:
"Two small client memory leak fixes"

* tag 'v6.19rc8-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
smb/client: fix memory leak in SendReceive()
smb/client: fix memory leak in smb2_open_file()

+4 -1
+3 -1
fs/smb/client/cifstransport.c
··· 251 251 rc = cifs_send_recv(xid, ses, ses->server, 252 252 &rqst, &resp_buf_type, flags, &resp_iov); 253 253 if (rc < 0) 254 - return rc; 254 + goto out; 255 255 256 256 if (out_buf) { 257 257 *pbytes_returned = resp_iov.iov_len; 258 258 if (resp_iov.iov_len) 259 259 memcpy(out_buf, resp_iov.iov_base, resp_iov.iov_len); 260 260 } 261 + 262 + out: 261 263 free_rsp_buf(resp_buf_type, resp_iov.iov_base); 262 264 return rc; 263 265 }
+1
fs/smb/client/smb2file.c
··· 178 178 rc = SMB2_open(xid, oparms, smb2_path, &smb2_oplock, smb2_data, NULL, &err_iov, 179 179 &err_buftype); 180 180 if (rc == -EACCES && retry_without_read_attributes) { 181 + free_rsp_buf(err_buftype, err_iov.iov_base); 181 182 oparms->desired_access &= ~FILE_READ_ATTRIBUTES; 182 183 rc = SMB2_open(xid, oparms, smb2_path, &smb2_oplock, smb2_data, NULL, &err_iov, 183 184 &err_buftype);