diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-11-07 10:51:34 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-11-25 09:03:12 +0100 |
commit | bfea603bc54c0a736d45bc60b188a8cdae9aaaa3 (patch) | |
tree | b43b1450150157203cfe891c3f9f91e9f1f746c1 /README | |
parent | d535922691fc026479fcc03e78ac3d931a54e75a (diff) | |
download | lwn-bfea603bc54c0a736d45bc60b188a8cdae9aaaa3.tar.gz lwn-bfea603bc54c0a736d45bc60b188a8cdae9aaaa3.zip |
gpio: msm: make msm_gpio.summary_irq signed for error handling
There is a bug in msm_gpio_probe() where we do:
msm_gpio.summary_irq = platform_get_irq(pdev, 0);
if (msm_gpio.summary_irq < 0) {
The problem is that "msm_gpio.summary_irq" is unsigned so the error
handling doesn't work. I've fixed it by making it signed.
Fixes: 43f68444bce7 ('gpio: msm: Add device tree and irqdomain support for gpio-msm-v2')
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions