mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04: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 <[email protected]> Reviewed-by: Laurent Vivier <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]>
This commit is contained in:
parent
378f7ca6aa
commit
957d6bf665
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue