diff options
| author | Elena Salomatkina <esalomatkina@ispras.ru> | 2024-10-23 00:37:08 +0300 |
|---|---|---|
| committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-10-23 16:11:13 +0900 |
| commit | 4b60a5655528786bf659e9627fb0b45900f4cc66 (patch) | |
| tree | 3ee7420598fa664b4b1635cdc7f3effab10ab2c4 /drivers/usb/cdns3/cdns3-debug.h | |
| parent | 42f7652d3eb527d03665b09edac47f85fb600924 (diff) | |
sumversion: Fix a memory leak in get_src_version()
strsep() modifies its first argument - buf.
An invalid pointer will be passed to the free() function.
Make the pointer passed to free() match the return value of
read_text_file().
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 9413e7640564 ("kbuild: split the second line of *.mod into *.usyms")
Signed-off-by: Elena Salomatkina <esalomatkina@ispras.ru>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions
