WSL2-Linux-Kernel/drivers/pinctrl/intel
Colin Ian King 33b6cb58cb pinctrl: intel: ensure error return ret is initialized
In the (unlikely) event that community->ngpps is zero, or if every
gpp->gpio_base is less than zero, then an ininitialized value in
ret is returned by function intel_gpio_add_pin_ranges. Fix this by
ensuring ret is initialized to zero.  It's a moot point, but I think
it is worthwhile ensuring this corner case is fixed.

Detected by CoverityScan, CID#1462415 ("Uninitialized scalar variable")

Fixes: a60eac3239 ("pinctrl: intel: Allow custom GPIO base for pad groups")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2017-12-07 09:59:39 +01:00
..
Kconfig pinctrl: intel: Add Intel Cedar Fork PCH pin controller support 2017-10-31 10:11:21 +01:00
Makefile This is the bulk of pin control changes for the v4.15 2017-11-16 10:57:11 -08:00
pinctrl-baytrail.c gpio: Move irq_valid_mask into struct gpio_irq_chip 2017-11-08 14:10:18 +01:00
pinctrl-broxton.c pinctrl: broxton: No need to take pointer of a pointer 2017-01-30 14:45:12 +01:00
pinctrl-cannonlake.c pinctrl: cannonlake: Align GPIO number space with Windows 2017-11-29 13:46:28 +01:00
pinctrl-cedarfork.c pinctrl: intel: Add Intel Cedar Fork PCH pin controller support 2017-10-31 10:11:21 +01:00
pinctrl-cherryview.c gpio / ACPI: Drop unnecessary ACPI GPIO to Linux GPIO translation 2017-11-29 13:41:46 +01:00
pinctrl-denverton.c pinctrl: intel: Add Intel Denverton pin controller support 2017-08-14 15:01:59 +02:00
pinctrl-geminilake.c pinctrl: intel: Add Intel Gemini Lake pin controller support 2017-01-30 15:06:01 +01:00
pinctrl-intel.c pinctrl: intel: ensure error return ret is initialized 2017-12-07 09:59:39 +01:00
pinctrl-intel.h pinctrl: intel: Allow custom GPIO base for pad groups 2017-11-29 13:44:52 +01:00
pinctrl-lewisburg.c pinctrl: intel: Add Intel Lewisburg GPIO support 2017-08-22 15:42:19 +02:00
pinctrl-merrifield.c pinctrl: intel: merrifield: Introduce ACPI device table 2017-11-29 10:29:45 +01:00
pinctrl-sunrisepoint.c pinctrl: intel: Add support for variable size pad groups 2017-06-09 13:01:35 +02:00