mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
net: ti: icssg-prueth: Fix error cleanup on failing pruss_request_mem_region
We were just continuing in this case, surely not desired.
Fixes: 128d5874c0 ("net: ti: icssg-prueth: Add ICSSG ethernet driver")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e409d73466
commit
2bd5b559a1
|
|
@ -2063,7 +2063,7 @@ static int prueth_probe(struct platform_device *pdev)
|
|||
&prueth->shram);
|
||||
if (ret) {
|
||||
dev_err(dev, "unable to get PRUSS SHRD RAM2: %d\n", ret);
|
||||
pruss_put(prueth->pruss);
|
||||
goto put_pruss;
|
||||
}
|
||||
|
||||
prueth->sram_pool = of_gen_pool_get(np, "sram", 0);
|
||||
|
|
@ -2215,6 +2215,8 @@ static int prueth_probe(struct platform_device *pdev)
|
|||
|
||||
put_mem:
|
||||
pruss_release_mem_region(prueth->pruss, &prueth->shram);
|
||||
|
||||
put_pruss:
|
||||
pruss_put(prueth->pruss);
|
||||
|
||||
put_cores:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user