diff options
author | Junhao He <hejunhao3@huawei.com> | 2023-11-14 16:33:45 +0300 |
---|---|---|
committer | Suzuki K Poulose <suzuki.poulose@arm.com> | 2023-11-16 13:00:14 +0300 |
commit | 862c135bde8bc185e8aae2110374175e6a1b6ed5 (patch) | |
tree | 881238edfdc150ec802688d960a25c4a019be607 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 830a7f54db102c889a3fe1c0a225f369ac05f07f (diff) | |
download | linux-862c135bde8bc185e8aae2110374175e6a1b6ed5.tar.xz |
coresight: ultrasoc-smb: Fix uninitialized before use buf_hw_base
In smb_reset_buffer, the sdb->buf_hw_base variable is uninitialized
before use, which initializes it in smb_init_data_buffer. And the SMB
regiester are set in smb_config_inport.
So move the call after smb_config_inport.
Fixes: 06f5c2926aaa ("drivers/coresight: Add UltraSoc System Memory Buffer driver")
Signed-off-by: Junhao He <hejunhao3@huawei.com>
Reviewed-by: James Clark <james.clark@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20231114133346.30489-4-hejunhao3@huawei.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions