summaryrefslogtreecommitdiff
path: root/lib/utils/timer/objects.mk
diff options
context:
space:
mode:
authorCarlos López <[email protected]>2024-08-01 14:27:42 +0200
committerAnup Patel <[email protected]>2024-08-02 08:45:05 +0530
commitd2353c9e227a3dfedc0f46b0006ded35846d7171 (patch)
treed920c6921d7c7e1c7891f57fde4bf6a5e9f5fe0c /lib/utils/timer/objects.mk
parentdf997c6e55fe5940fd035097e6ecb5612aa95b4b (diff)
lib: sbi: dbtr: fix potential NULL pointer dereferences
In several dbtr functions, we first check that the dbtr trigger is not NULL and that its state is what we expect. However, it only makes sense to perform the second check if the dbtr trigger is not NULL. Othwerwise we will dereference a NULL pointer. Thus, change the condition so that it shortcuts to the first check if necessary. Signed-off-by: Carlos López <[email protected]> Reviewed-By: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/timer/objects.mk')
0 files changed, 0 insertions, 0 deletions