diff options
author | Moti Haimovski <mhaimovski@habana.ai> | 2021-08-16 14:39:46 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2021-10-18 12:05:47 +0300 |
commit | 4a18dde5e4c6348d48e3021cfbb01ef699005f19 (patch) | |
tree | 98e2eebdb4936e045191b71b8e0fd99e9ad73c05 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 024b7b1d6dcd1960e9b669e981968ca4b6bf80cb (diff) |
habanalabs: initialize hpriv fields before adding new node
When adding a new node to the hpriv list, the driver should
initialize its fields before adding the new node.
Otherwise, there may be some small chance of another thread traversing
that list and accessing the new node's fields without them being
initialized.
Signed-off-by: Moti Haimovski <mhaimovski@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions