mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
nfp: fix readq on absolute RTsyms
Return the error and report value through the output param.
Fixes: 640917dd81
("nfp: support access to absolute RTsyms")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Francois H. Theron <francois.theron@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9e7e6cabf3
commit
3c576de30b
@ -337,8 +337,10 @@ int __nfp_rtsym_readq(struct nfp_cpp *cpp, const struct nfp_rtsym *sym,
|
||||
u64 addr;
|
||||
int err;
|
||||
|
||||
if (sym->type == NFP_RTSYM_TYPE_ABS)
|
||||
return sym->addr;
|
||||
if (sym->type == NFP_RTSYM_TYPE_ABS) {
|
||||
*value = sym->addr;
|
||||
return 0;
|
||||
}
|
||||
|
||||
err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr);
|
||||
if (err)
|
||||
|
Loading…
Reference in New Issue
Block a user