projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b787f68
)
gpiolib: change gpio pin from unsigned to signed in acpi callback
author
Qipeng Zha
<
[email protected]
>
Thu, 9 Apr 2015 22:25:10 +0000
(06:25 +0800)
committer
Linus Walleij
<
[email protected]
>
Mon, 27 Apr 2015 13:20:33 +0000
(15:20 +0200)
The signed error will be wrongly used as valid gpio offset
Reported-by: David Binderman <
[email protected]
>
Signed-off-by: Alan Cox <
[email protected]
>
Signed-off-by: Qipeng Zha <
[email protected]
>
Acked-by: Mika Westerberg <
[email protected]
>
Signed-off-by: Linus Walleij <
[email protected]
>
drivers/gpio/gpiolib-acpi.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpiolib-acpi.c
b/drivers/gpio/gpiolib-acpi.c
index d2303d50f56141c527c9d8b82c956c6c8169e239..725d16138b740e27a39d151ec5f7bfdedb9a969b 100644
(file)
--- a/
drivers/gpio/gpiolib-acpi.c
+++ b/
drivers/gpio/gpiolib-acpi.c
@@
-550,7
+550,7
@@
acpi_gpio_adr_space_handler(u32 function, acpi_physical_address address,
length = min(agpio->pin_table_length, (u16)(pin_index + bits));
for (i = pin_index; i < length; ++i) {
-
unsigned
pin = agpio->pin_table[i];
+
int
pin = agpio->pin_table[i];
struct acpi_gpio_connection *conn;
struct gpio_desc *desc;
bool found;