mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-20 08:22:39 +00:00
swim: Release memory region after incorrect return/goto
The code uses return foo; goto err_type; when instead the form should have been ret = foo; goto err_type; Here this causes a useful release_mem_region to be skipped. Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: Laurent Vivier <Laurent@Vivier.EU> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
378f7ca6aa
commit
957d6bf665
@ -893,7 +893,7 @@ static int swim_probe(struct platform_device *dev)
|
||||
|
||||
swim_base = ioremap(res->start, resource_size(res));
|
||||
if (!swim_base) {
|
||||
return -ENOMEM;
|
||||
ret = -ENOMEM;
|
||||
goto out_release_io;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user