summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorDeepanshu Kartikey <kartikey406@gmail.com>2026-03-23 10:51:48 +0530
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2026-04-02 20:23:23 +0200
commit87ac077d6ea8613b7c1debdf3b5e92c78618fd23 (patch)
tree274692c0505da3ea21a769795a9e0868ca522edb /include/linux/i2c/git@git.tavy.me:linux-stable.git
parentf9963deaa891479da24e32fc614c08f158fe1608 (diff)
ntfs3: fix memory leak in indx_create_allocate()
When indx_create_allocate() fails after attr_allocate_clusters() succeeds, run_deallocate() frees the disk clusters but never frees the memory allocated by run_add_entry() via kvmalloc() for the runs_tree structure. Fix this by adding run_close() at the out: label to free the run.runs memory on all error paths. The success path is unaffected as it returns 0 directly without going through out:, transferring ownership of the run memory to indx->alloc_run via memcpy(). Reported-by: syzbot+7adcddaeeb860e5d3f2f@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=7adcddaeeb860e5d3f2f Signed-off-by: Deepanshu Kartikey <Kartikey406@gmail.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions