Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Apr 22, 2016

Conversation

frasersdev
Copy link

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
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.

None yet

3 participants