coresight: ultrasoc-smb: Fix uninitialized before use buf_hw_base
maillist inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8ICOU CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux.git/commit/?h=fixes&id=862c135bde8bc185e8aae2110374175e6a1b6ed5 --------------------------------------------------------------------------- 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: 06f5c292 ("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> Signed-off-by:
Cai Jian <caijian11@h-partners.com> Link: https://lore.kernel.org/r/20231114133346.30489-4-hejunhao3@huawei.com
Loading
Please sign in to comment