diff options
| author | Yichong Chen <chenyichong@uniontech.com> | 2026-07-04 13:27:14 +0800 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-07-27 17:25:58 -0500 |
| commit | 9388e7c820e33d3a7dfde9a9c16ad4ac60f29d37 (patch) | |
| tree | 6fe41e8d3d18bd0d9a88b6fecc203bcdf5e66d56 /scripts | |
| parent | 455488cd5054bcc59db40fa1cc2c004031a5b2a5 (diff) | |
smb: client: free partially allocated transform folio queue
netfs_alloc_folioq_buffer() may leave a partially allocated folio
queue attached to the caller's buffer pointer when it returns an error.
smb3_init_transform_rq() stores the buffer in the request only after
allocation succeeds, so the common error path cannot free a partial
allocation. Store the buffer pointer before checking the return value so
err_free releases it.
Signed-off-by: Yichong Chen <chenyichong@uniontech.com>
Reviewed-by: ChenXiaoSong <chenxiaosong@kylinos.cn>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
