diff options
| author | Yang Yingliang <[email protected]> | 2023-07-28 16:57:23 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-07-30 13:52:52 +0200 |
| commit | 5f45b336fc57cb31c81d2eb4a63008ab65840a2b (patch) | |
| tree | acf1dbcc4099b20ff912e2987148ebe3439504f3 /tools/perf/scripts/python | |
| parent | 9b4e18f032db160a70d73d3cdf3a0bff229686b4 (diff) | |
8250_men_mcb: fix error handling in read_uarts_available_from_reg()
If ioremap() fails, it returns NULL pointer, not ERR_PTR(), fix the
return value check and call release_mem_region() to release resource.
Fixes: c563831ba879 ("8250_men_mcb: Make UART config auto configurable")
Signed-off-by: Yang Yingliang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions