aboutsummaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorAnsuel Smith <[email protected]>2022-01-16 04:22:10 +0100
committerMiquel Raynal <[email protected]>2022-01-25 10:31:44 +0100
commit65d003cca335cabc0160d3cd7daa689eaa9dd3cd (patch)
tree10f56395411626bc6718d2a923de89a80d25720e /tools/testing
parent079e6bdb2b1cc1da8b5c602229db782732668ae7 (diff)
mtd: parsers: qcom: Fix kernel panic on skipped partition
In the event of a skipped partition (case when the entry name is empty) the kernel panics in the cleanup function as the name entry is NULL. Rework the parser logic by first checking the real partition number and then allocate the space and set the data for the valid partitions. The logic was also fundamentally wrong as with a skipped partition, the parts number returned was incorrect by not decreasing it for the skipped partitions. Fixes: 803eb124e1a6 ("mtd: parsers: Add Qcom SMEM parser") Signed-off-by: Ansuel Smith <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions