aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2021-05-08 09:23:09 +0200
committerRafael J. Wysocki <[email protected]>2021-05-10 19:02:55 +0200
commit0c8bd174f0fc131bc9dfab35cd8784f59045da87 (patch)
tree52cc3d1b2944a2fd5d2f1b54f26c1a3710a18c15 /lib/test_fortify/write_overflow-strncpy-src.c
parent6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff)
ACPI: scan: Fix a memory leak in an error handling path
If 'acpi_device_set_name()' fails, we must free 'acpi_device_bus_id->bus_id' or there is a (potential) memory leak. Fixes: eb50aaf960e3 ("ACPI: scan: Use unique number for instance_no") Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions