diff options
| author | Henry Martin <bsdhenrymartin@gmail.com> | 2025-04-03 15:03:39 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-11 16:53:34 +0200 |
| commit | 86bcae88c9209e334b2f8c252f4cc66beb261886 (patch) | |
| tree | cb12af62a9297f2358d1e001ad5fb22d3622a88f /tools/perf/scripts/python | |
| parent | serial: 8250_of: add support for an optional bus clock (diff) | |
| download | linux-86bcae88c9209e334b2f8c252f4cc66beb261886.tar.gz linux-86bcae88c9209e334b2f8c252f4cc66beb261886.zip | |
serial: Fix potential null-ptr-deref in mlb_usio_probe()
devm_ioremap() can return NULL on error. Currently, mlb_usio_probe()
does not check for this case, which could result in a NULL pointer
dereference.
Add NULL check after devm_ioremap() to prevent this issue.
Fixes: ba44dc043004 ("serial: Add Milbeaut serial control")
Signed-off-by: Henry Martin <bsdhenrymartin@gmail.com>
Link: https://lore.kernel.org/r/20250403070339.64990-1-bsdhenrymartin@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
