Re: [PATCH] clk: mux: Return a sane value on error

2013-10-30 Thread Mike Turquette
Quoting Russ Dill (2013-10-21 01:59:50) > The get_parent op is defined as returning u8, but clk-mux is > returning negative values on error. Code within drivers/clk/clk.c > uses this return value as an index into an array which could > cause an oops. > > Signed-off-by: Russ Dill Hi Russ, Thank

[PATCH] clk: mux: Return a sane value on error

2013-10-21 Thread Russ Dill
The get_parent op is defined as returning u8, but clk-mux is returning negative values on error. Code within drivers/clk/clk.c uses this return value as an index into an array which could cause an oops. Signed-off-by: Russ Dill --- drivers/clk/clk-mux.c | 4 ++-- 1 file changed, 2 insertions(+)