Skip to content

pinctrl: Fix resource leaks, out-of-bounds accesses, and error handling (batch 2)

Lee Jones linux-arm-kernel linux-gpio linux-omap lkml openbmc stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10pinctrl: nuvoton: ma35: Unmap reg_base and release clock on probe errordrivers/pinctrl/nuvoton/pinctrl-ma35.c+31 -50 replies
2/10pinctrl: nuvoton: ma35: Prevent out-of-bounds write in ma35_pinctrl_get_soc_data()drivers/pinctrl/nuvoton/pinctrl-ma35.c+6 -00 replies
3/10pinctrl: nuvoton: ma35: Assign fwnode to gpio_chip in ma35_gpiolib_register()drivers/pinctrl/nuvoton/pinctrl-ma35.c+1 -00 replies
4/10pinctrl: nuvoton: ma35: Avoid leaking map when parent node is missingdrivers/pinctrl/nuvoton/pinctrl-ma35.c+7 -50 replies
5/10pinctrl: nuvoton: npcm8xx: Propagate npcm8xx_gpio_register() error in probedrivers/pinctrl/nuvoton/pinctrl-npcm8xx.c+1 -10 replies
6/10pinctrl: nuvoton: npcm7xx: Fix fwnode_irq_get() error check in npcm7xx_gpio_of()drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c+4 -30 replies
7/10pinctrl: single: Reject invalid register width in pcs_probe()drivers/pinctrl/pinctrl-single.c+17 -170 replies
8/10pinctrl: single: Free pinconf settings array in pcs_dt_free_map()drivers/pinctrl/pinctrl-single.c+6 -20 replies
9/10pinctrl: sunplus: Validate pin_func index in sppctl_dt_node_to_map()drivers/pinctrl/sunplus/sppctl.c+6 -11 reply
10/10pinctrl: realtek: rtd1625: Set dcycle_offset to NA for pins without duty-cycle supportdrivers/pinctrl/realtek/pinctrl-rtd1625.c+6 -61 reply

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchAndrew GaylardYu-Chun Lin
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10R-b T-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] pinctrl: Fix resource leaks, out-of-bounds accesses, and error handling (batch 2)

These issues were reported by Sashiko (batch 2).

Cc "Andreas Färber" <[email protected]>
Cc Andrew Jeffery <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Avi Fishman <[email protected]>
Cc Benjamin Fair <[email protected]>
Cc Dvorkin Dmitry <[email protected]>
Cc Haojian Zhuang <[email protected]>
Cc Harshit Mogalapalli <[email protected]>
Cc Jacky Huang <[email protected]>
Cc James Tai <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Nancy Yuen <[email protected]>
Cc Patrick Venture <[email protected]>
Cc Shan-Chun Hung <[email protected]>
Cc Tali Perry <[email protected]>
Cc Tomer Maimon <[email protected]>
Cc Tony Lindgren <[email protected]>
Cc Tzuyi Chang <[email protected]>
Cc Wells Lu <[email protected]>
Cc Yu-Chun Lin <[email protected]>

Lee Jones (10):
pinctrl: nuvoton: ma35: Unmap reg_base and release clock on probe
error
pinctrl: nuvoton: ma35: Prevent out-of-bounds write in

    ma35_pinctrl_get_soc_data()
  pinctrl: nuvoton: ma35: Assign fwnode to gpio_chip in
    ma35_gpiolib_register()
  pinctrl: nuvoton: ma35: Avoid leaking map when parent node is missing
  pinctrl: nuvoton: npcm8xx: Propagate npcm8xx_gpio_register() error in
    probe
  pinctrl: nuvoton: npcm7xx: Fix fwnode_irq_get() error check in
    npcm7xx_gpio_of()

pinctrl: single: Reject invalid register width in pcs_probe()
pinctrl: single: Free pinconf settings array in pcs_dt_free_map()
pinctrl: sunplus: Validate pin_func index in sppctl_dt_node_to_map()
pinctrl: realtek: rtd1625: Set dcycle_offset to NA for pins without
duty-cycle support

 drivers/pinctrl/nuvoton/pinctrl-ma35.c    | 55 ++++++++++++++++++-----
 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c |  7 +--
 drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c |  2 +-
 drivers/pinctrl/pinctrl-single.c          | 42 +++++++++--------
 drivers/pinctrl/realtek/pinctrl-rtd1625.c | 12 ++---
 drivers/pinctrl/sunplus/sppctl.c          |  7 ++-
 6 files changed, 85 insertions(+), 40 deletions(-)
Signature · 1 line
2.56.0.567.gdb80ae8cd5-goog