summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2025-03-13 18:28:50 +0300
committerJassi Brar <jassisinghbrar@gmail.com>2025-03-27 04:58:25 +0300
commit4119a44c71840e6ab9a8d340ca09e7b3210ade76 (patch)
treecb25f3535de24caa468158ffde21ee9c03db63e5 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent29237e6df42b08ccb4152121ec2c650fdae103e1 (diff)
downloadlinux-4119a44c71840e6ab9a8d340ca09e7b3210ade76.tar.xz
mailbox: pcc: Return early if no GAS register from pcc_mbox_cmd_complete_check
pcc_mbox_cmd_complete_check() accesses pchan->cmd_complete.gas to check command completion status. Even if GAS is NULL, pcc_chan_reg_read() gets called which returns success doing nothing and then we return. Add an early return if pchan->cmd_complete.gas == NULL before performing any operations. Acked-by: Huisong Li <lihuisong@huawei.com> Tested-by: Huisong Li <lihuisong@huawei.com> Tested-by: Adam Young <admiyo@os.amperecomputing.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions