kernel/3.18: update to version 3.18.25
[openwrt/openwrt.git] / target / linux / sunxi / patches-4.4 / 135-clk-sunxi-fix-signedness-bug.patch
1 From b1558f168f4ef5956913d73fe330c4da85c74349 Mon Sep 17 00:00:00 2001
2 From: Dan Carpenter <dan.carpenter@oracle.com>
3 Date: Sat, 12 Dec 2015 15:43:46 +0300
4 Subject: [PATCH] clk: sunxi: signedness bug in sun8i_h3_bus_gates_init()
5
6 "index" needs to be signed for the error handling to work.
7
8 Fixes: ab6e23a4e388 ('clk: sunxi: Add H3 clocks support')
9 Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
10 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
11 ---
12 drivers/clk/sunxi/clk-sun8i-bus-gates.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 --- a/drivers/clk/sunxi/clk-sun8i-bus-gates.c
16 +++ b/drivers/clk/sunxi/clk-sun8i-bus-gates.c
17 @@ -40,7 +40,7 @@ static void __init sun8i_h3_bus_gates_in
18 const __be32 *p;
19 int number, i;
20 u8 clk_bit;
21 - u32 index;
22 + int index;
23
24 reg = of_io_request_and_map(node, 0, of_node_full_name(node));
25 if (IS_ERR(reg))