aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2023-07-16 16:46:11 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2023-07-28 14:32:28 +0200
commite260efea80e9cab8ad9dea1a03db11225df720f3 (patch)
treece603305989aa54b57d8ab32edd22af9c8d5a56b /tools/perf/scripts/python
parent548b7509d92d1349b01ed2293dcdde88f3d7a907 (diff)
mtd: rawnand: qcom: Early structure initialization
Instead of allocating a structure on the stack with random data and then expect the callee to perform the initialization (which is, in general, error prone), prefer zeroing the structure explicitly at allocation and provide the already zeroed area, so no explicit memset operation is needed. It is probably safer to do so, so we limit the timeframe when dirty data could actually be accessed by mistake. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Manivannan Sadhasivam <mani@kernel.org> Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org> Link: https://lore.kernel.org/linux-mtd/20230716144612.32132-8-miquel.raynal@bootlin.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions