-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
asustor_main.c: Avoid leaking struct gpio_device
turns out that the gpio_device* returned by gpio_device_find_by_label() must be "freed" (or the refcounter decremented) by calling gpio_device_put(dev). While fixing that, I refactored the code for getting the GPIO chip's base number a bit so we don't have to use the (deprecated) gpio_device_get_chip() anymore.
- Loading branch information
1 parent
205cc71
commit b184681
Showing
1 changed file
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters