Searched hist:"86665 d2897209429a7e4a003764b9fc5034dbfa1" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/clk/st/ |
H A D | clkgen-mux.c | diff 86665d2897209429a7e4a003764b9fc5034dbfa1 Wed Jul 08 03:30:05 CEST 2015 Stephen Boyd <sboyd@codeaurora.org> clk: st: Fix error paths and allocation style
The error paths in this file leak memory and mappings and test for pointers being valid after dereferencing them. Fix these problems and properly free resources on errors. Fix some stylistic things too like using sizeof(*ptr) and fitting more code on a single line. Note that we don't unregister clocks here. That needs a clk_composite_unregister() API that we don't have right now.
Acked-by: Gabriel Fernandez <gabriel.fernandez@linaro.org> Cc: Pankaj Dev <pankaj.dev@st.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
|