diff options
author | Jean Delvare <[email protected]> | 2022-06-21 15:28:40 +0200 |
---|---|---|
committer | Wim Van Sebroeck <[email protected]> | 2022-07-23 14:21:23 +0200 |
commit | c6d9c0798ed366a09a9e53d71edcd2266e34a6eb (patch) | |
tree | 51dcc1e1406ccccdc8e40886b53173a0ce79a4fa /drivers/usb/cdns3/cdns3-trace.c | |
parent | 418c951d637a2685392f52fd26113bfe14408f89 (diff) |
watchdog: sp5100_tco: Fix a memory leak of EFCH MMIO resource
Unlike release_mem_region(), a call to release_resource() does not
free the resource, so it has to be freed explicitly to avoid a memory
leak.
Signed-off-by: Jean Delvare <[email protected]>
Fixes: 0578fff4aae5 ("Watchdog: sp5100_tco: Add initialization using EFCH MMIO")
Cc: Terry Bowman <[email protected]>
Cc: Wim Van Sebroeck <[email protected]>
Cc: Guenter Roeck <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions