Searched hist:"5 d8a3bf5dcee4e8ad185557cee50691a20a42e11" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpio/ |
H A D | gpio-sim.c | diff 5d8a3bf5dcee4e8ad185557cee50691a20a42e11 Sun Sep 17 03:58:37 CDT 2023 Bartosz Golaszewski <bartosz.golaszewski@linaro.org> gpio: sim: initialize a managed pointer when declaring it
[ Upstream commit 9f93f18305f5777820491e6ab9b34422c160371b ]
Variables managed with __free() should typically be initialized where they are declared so that the __free() callback is paired with its counterpart resource allocator. Fix the second instance of using __free() in gpio-sim to follow this pattern.
Fixes: 3faf89f27aab ("gpio: sim: simplify code with cleanup helpers") Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
|