commit | d932cd49182f97966d196fb5301bfca90f58a360 | [log] [tgz] |
---|---|---|
author | Linus Walleij <linus.walleij@linaro.org> | Mon Jul 04 13:13:04 2016 +0200 |
committer | Linus Walleij <linus.walleij@linaro.org> | Mon Jul 04 16:54:36 2016 +0200 |
tree | 9a94e87c0723413c4a6319fa080e02bffdcee003 | |
parent | a944a892aa8ddecf6e2df432e6965dc86d73e3aa [diff] |
gpio: free handles in fringe cases If we fail when copying the ioctl() struct to userspace we still need to clean up the cruft otherwise left behind or it will stay around until the issuing process terminates the file handle. Reported-by: Alexander Stein <alexander.stein@systec-electronic.com> Acked-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>