diff options
| author | Dani Liberman <[email protected]> | 2021-10-06 09:36:19 +0300 |
|---|---|---|
| committer | Oded Gabbay <[email protected]> | 2021-10-18 12:05:47 +0300 |
| commit | 81f8582ec404b2ab3ec1d412e33703e014fc3121 (patch) | |
| tree | 999b2399aec7284f4450e0f6a19915204e21b6bf /scripts/gcc-plugins/gcc-generate-ipa-pass.h | |
| parent | ea6eb91c09cd4f2f92ba28ba277d2ecf63cdc237 (diff) | |
habanalabs: fix NULL pointer dereference
When polling fences for multi CS, it is possible that fence is
no longer exists (its corresponding CS completed and the fence was
deleted) but we still accessing its parameters, causing NULL pointer
dereference.
Fixed by checking if fence exits before accessing its parameters.
Signed-off-by: Dani Liberman <[email protected]>
Reviewed-by: Oded Gabbay <[email protected]>
Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-ipa-pass.h')
0 files changed, 0 insertions, 0 deletions