Skip to content

clk-bcm2835-aux fix - backported from kernel 4.6 - #1423

Merged
pelwell merged 1 commit into
raspberrypi:rpi-4.4.yfrom
frasersdev:rpi-4.4.y
Apr 22, 2016
Merged

pelwell merged 1 commit into
raspberrypi:rpi-4.4.yfrom
frasersdev:rpi-4.4.y

Conversation

@frasersdev

Copy link
Copy Markdown

clk: bcm2835: fix check of error code returned by devm_ioremap_resource()


The change fixes potential oops while accessing iomem on invalid address, if devm_ioremap_resource() fails due to some reason.

The devm_ioremap_resource() function returns ERR_PTR() and never returns NULL, which makes useless a following check for NULL.

Signed-off-by: Vladimir Zapolskiy vz@mleia.com
Fixes: 5e63dcc ("clk: bcm2835: Add a driver for the auxiliary peripheral clock gates")
Reviewed-by: Eric Anholt eric@anholt.net
Signed-off-by: Stephen Boyd sboyd@codeaurora.org

…ce()

The change fixes potential oops while accessing iomem on invalid
address, if devm_ioremap_resource() fails due to some reason.

The devm_ioremap_resource() function returns ERR_PTR() and never
returns NULL, which makes useless a following check for NULL.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Fixes: 5e63dcc ("clk: bcm2835: Add a driver for the auxiliary peripheral clock gates")
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
@pelwell
pelwell merged commit 2dd48cf into raspberrypi:rpi-4.4.y Apr 22, 2016
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Apr 22, 2016
See: raspberrypi/linux#1419

kernel: clk-bcm2835-aux fix - backported from kernel 4.6
See: raspberrypi/linux#1423

kernel: bcm2835-i2s: Reduce the TX DREQ threshold
See: raspberrypi/linux#1417

kernel: config: Add DRM_UDL module
See: raspberrypi/linux#1422

kernel: vchiq_arm: Add completion records under the mutex
See: https://discourse.osmc.tv/t/crashing-when-seeking/15716

firmware: pwm_sdm: Fix release build bug regression
See: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=136445

firmware: raspistill: Use camera_info component to set the sensor name and output resolution

firmware: dtoverlay: Require sudo for destructive operations
firmware: dtoverlay: command line tweaks
See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=139732

firmware: platform: Move initial freq settings to platform
firmeare: platform: Move initial volt settings to platform
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Apr 22, 2016
See: raspberrypi/linux#1419

kernel: clk-bcm2835-aux fix - backported from kernel 4.6
See: raspberrypi/linux#1423

kernel: bcm2835-i2s: Reduce the TX DREQ threshold
See: raspberrypi/linux#1417

kernel: config: Add DRM_UDL module
See: raspberrypi/linux#1422

kernel: vchiq_arm: Add completion records under the mutex
See: https://discourse.osmc.tv/t/crashing-when-seeking/15716

firmware: pwm_sdm: Fix release build bug regression
See: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=136445

firmware: raspistill: Use camera_info component to set the sensor name and output resolution

firmware: dtoverlay: Require sudo for destructive operations
firmware: dtoverlay: command line tweaks
See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=139732

firmware: platform: Move initial freq settings to platform
firmeare: platform: Move initial volt settings to platform
XECDesign pushed a commit to RPi-Distro/firmware that referenced this pull request May 4, 2016
See: raspberrypi/linux#1419

kernel: clk-bcm2835-aux fix - backported from kernel 4.6
See: raspberrypi/linux#1423

kernel: bcm2835-i2s: Reduce the TX DREQ threshold
See: raspberrypi/linux#1417

kernel: config: Add DRM_UDL module
See: raspberrypi/linux#1422

kernel: vchiq_arm: Add completion records under the mutex
See: https://discourse.osmc.tv/t/crashing-when-seeking/15716

firmware: pwm_sdm: Fix release build bug regression
See: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=136445

firmware: raspistill: Use camera_info component to set the sensor name and output resolution

firmware: dtoverlay: Require sudo for destructive operations
firmware: dtoverlay: command line tweaks
See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=139732

firmware: platform: Move initial freq settings to platform
firmeare: platform: Move initial volt settings to platform
neuschaefer pushed a commit to neuschaefer/raspi-binary-firmware that referenced this pull request Feb 27, 2017
See: raspberrypi/linux#1419

kernel: clk-bcm2835-aux fix - backported from kernel 4.6
See: raspberrypi/linux#1423

kernel: bcm2835-i2s: Reduce the TX DREQ threshold
See: raspberrypi/linux#1417

kernel: config: Add DRM_UDL module
See: raspberrypi/linux#1422

kernel: vchiq_arm: Add completion records under the mutex
See: https://discourse.osmc.tv/t/crashing-when-seeking/15716

firmware: pwm_sdm: Fix release build bug regression
See: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=136445

firmware: raspistill: Use camera_info component to set the sensor name and output resolution

firmware: dtoverlay: Require sudo for destructive operations
firmware: dtoverlay: command line tweaks
See: https://www.raspberrypi.org/forums/viewtopic.php?f=107&t=139732

firmware: platform: Move initial freq settings to platform
firmeare: platform: Move initial volt settings to platform
beartronix pushed a commit to beartronix/rpi-linux that referenced this pull request Jun 24, 2026
Fix checkpatch code style warnings:

  WARNING: Prefer strscpy over strcpy - see: KSPP/linux#88
  raspberrypi#1423: FILE: net/core/pktgen.c:1423:
  +                       strcpy(pkt_dev->dst_min, buf);

  WARNING: Prefer strscpy over strcpy - see: KSPP/linux#88
  raspberrypi#1444: FILE: net/core/pktgen.c:1444:
  +                       strcpy(pkt_dev->dst_max, buf);

  WARNING: Prefer strscpy over strcpy - see: KSPP/linux#88
  raspberrypi#1554: FILE: net/core/pktgen.c:1554:
  +                       strcpy(pkt_dev->src_min, buf);

  WARNING: Prefer strscpy over strcpy - see: KSPP/linux#88
  raspberrypi#1575: FILE: net/core/pktgen.c:1575:
  +                       strcpy(pkt_dev->src_max, buf);

  WARNING: Prefer strscpy over strcpy - see: KSPP/linux#88
  raspberrypi#3231: FILE: net/core/pktgen.c:3231:
  +                       strcpy(pkt_dev->result, "Starting");

  WARNING: Prefer strscpy over strcpy - see: KSPP/linux#88
  raspberrypi#3235: FILE: net/core/pktgen.c:3235:
  +                       strcpy(pkt_dev->result, "Error starting");

  WARNING: Prefer strscpy over strcpy - see: KSPP/linux#88
  raspberrypi#3849: FILE: net/core/pktgen.c:3849:
  +       strcpy(pkt_dev->odevname, ifname);

While at it squash memset/strcpy pattern into single strscpy_pad call.

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250415112916.113455-4-ps.report@gmx.net
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants