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:
c7eb47f
)
extcon: axp288:: Handle return value of platform_get_irq
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Thu, 23 Nov 2017 15:55:30 +0000
(21:25 +0530)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Wed, 3 Jan 2018 01:10:51 +0000
(10:10 +0900)
platform_get_irq() can fail here and we must check its return value.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-axp288.c
patch
|
blob
|
history
diff --git
a/drivers/extcon/extcon-axp288.c
b/drivers/extcon/extcon-axp288.c
index 981fba56bc1872190d4464148d4c21703842e7a0..e16a7838cac3750b6eaa42b903ceca3ff12ecea1 100644
(file)
--- a/
drivers/extcon/extcon-axp288.c
+++ b/
drivers/extcon/extcon-axp288.c
@@
-301,6
+301,9
@@
static int axp288_extcon_probe(struct platform_device *pdev)
for (i = 0; i < EXTCON_IRQ_END; i++) {
pirq = platform_get_irq(pdev, i);
+ if (pirq < 0)
+ return pirq;
+
info->irq[i] = regmap_irq_get_virq(info->regmap_irqc, pirq);
if (info->irq[i] < 0) {
dev_err(&pdev->dev,