diff options
author | Dan Carpenter <[email protected]> | 2023-06-27 08:42:10 +0300 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2023-07-13 11:09:07 +0530 |
commit | 7891d0a5ce6f627132d3068ba925cf86f29008b1 (patch) | |
tree | 94bb4a602eba1e0845d4de52d1ba9564194bb125 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | f84d41b2a083b990cbdf70f3b24b6b108b9678ad (diff) |
soundwire: amd: Fix a check for errors in probe()
This code has two problems:
1) The devm_ioremap() function returns NULL, not error pointers.
2) It's checking the wrong variable. ->mmio instead of ->acp_mmio.
Fixes: d8f48fbdfd9a ("soundwire: amd: Add support for AMD Manager driver")
Suggested-by: "Mukunda,Vijendar" <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions