Skip to content

block: partitions: of: Fix NULL dereference on partition without reg - #41

Open
blktests-ci-block-trial[bot] wants to merge 1 commit into
master_basefrom
series/369=>master
Open

block: partitions: of: Fix NULL dereference on partition without reg#41
blktests-ci-block-trial[bot] wants to merge 1 commit into
master_basefrom
series/369=>master

Conversation

@blktests-ci-block-trial

Copy link
Copy Markdown

Pull request for series with
subject: block: partitions: of: Fix NULL dereference on partition without reg
version: 1
url: http://redsun45:8000/project/linux-block/list/?series=369

A child node of a fixed-partitions node may lack a reg property, either
because it is malformed or because it is not a partition entry at all.
In that case of_get_property() returns NULL to reg, which is then
dereferenced without proper checking.

Fixes: 2e3a191 ("block: add support for partition table defined in OF")
Cc: stable@vger.kernel.org
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
@blktests-ci-block-trial

Copy link
Copy Markdown
Author

Upstream branch: 248951d
series: http://redsun45:8000/project/linux-block/list/?series=369
version: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants