Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ec7215 commit 178ca6fCopy full SHA for 178ca6f
fs/ksmbd/smb2pdu.c
@@ -4498,8 +4498,10 @@ static void get_file_stream_info(struct ksmbd_work *work,
4498
":%s", &stream_name[XATTR_NAME_STREAM_LEN]);
4499
4500
next = sizeof(struct smb2_file_stream_info) + streamlen * 2;
4501
- if (next > buf_free_len)
+ if (next > buf_free_len) {
4502
+ kfree(stream_buf);
4503
break;
4504
+ }
4505
4506
file_info = (struct smb2_file_stream_info *)&rsp->Buffer[nbytes];
4507
streamlen = smbConvertToUTF16((__le16 *)file_info->StreamName,
0 commit comments