diff options
| author | 2018-07-02 13:47:08 +0100 | |
|---|---|---|
| committer | 2018-07-02 16:05:01 +0200 | |
| commit | 23ee0f192033ac6742fc179699d91336a000aef5 (patch) | |
| tree | 9a604c2f387cdf6252eb5fe8276155f295f1d1bd /include/linux/pinctrl | |
| parent | pinctrl: intel: Convert to use SPDX identifier (diff) | |
| download | linux-dev-23ee0f192033ac6742fc179699d91336a000aef5.tar.xz linux-dev-23ee0f192033ac6742fc179699d91336a000aef5.zip | |
pinctrl: actions: fix unsigned less than zero comparison
The check to see if platform_get_irq failed is performed on the
unsigned value of pctrl->irq[i] and the check is never true because
an unsigned cannot be less than zero. Fix this by assinging the
signed int ret to the return of platform_get_irq and checking ret
instead.
Detected by CoverityScan, CID#1470247 ("Unsigned comparison against 0")
Fixes: 6c5d0736e9c0 ("pinctrl: actions: Add interrupt support for OWL S900 SoC")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl')
0 files changed, 0 insertions, 0 deletions
