mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
thermometer_add_tz() opens tz_path and then reallocates thermometer->tz. If realloc fails, the function returns without closing fd. Close fd before returning on realloc failure to avoid leaking a file descriptor. Signed-off-by: Amarjeet <amarjeet@intel.com> Link: https://patch.msgid.link/20260620122637.1334927-1-amarjeet@intel.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> |
||
|---|---|---|
| .. | ||
| lib | ||
| thermal-engine | ||
| thermometer | ||
| tmon | ||