Skip to content
Commit 0f0c9c70 authored by Dan Carpenter's avatar Dan Carpenter Committed by Joel Stanley
Browse files

soc: aspeed: Fix a reference leak in aspeed_socinfo_init()



This needs to call of_node_put(np) before returning if of_iomap() fails.

Fixes: e0218dca ("soc: aspeed: Add soc info driver")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarAndrew Jeffery <andrew@aj.id.au>
Link: https://lore.kernel.org/r/20201113100850.GA168908@mwanda


Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
parent 959b981d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment