diff options
author | Miquel Raynal <[email protected]> | 2023-07-16 16:46:11 +0200 |
---|---|---|
committer | Miquel Raynal <[email protected]> | 2023-07-28 14:32:28 +0200 |
commit | e260efea80e9cab8ad9dea1a03db11225df720f3 (patch) | |
tree | ce603305989aa54b57d8ab32edd22af9c8d5a56b /drivers/media/v4l2-core/v4l2-ctrls-request.c | |
parent | 548b7509d92d1349b01ed2293dcdde88f3d7a907 (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 <[email protected]>
Acked-by: Manivannan Sadhasivam <[email protected]>
Reviewed-by: Tudor Ambarus <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-ctrls-request.c')
0 files changed, 0 insertions, 0 deletions