Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 51385858 authored by Varka Bhadram's avatar Varka Bhadram Committed by Linus Walleij
Browse files

gpio-amd8111: add release_region on ioport_map failure



Commit ffe4770b ("gpio-amd8111: check ioport_map return value")
adds the error check on ioport_map(). It doesnt release the requested region.

On failure this patch release the region that has requested before.

Signed-off-by: default avatarVarka Bhadram <varkab@cdac.in>
Reported-by: default avatarAlexandre Courbot <gnurou@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a0b66e3f
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