aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2020-08-19 12:14:52 +0100
committerKalle Valo <[email protected]>2020-08-31 18:16:38 +0300
commitb2c094582e38d667444a13404271752e5fafb2e2 (patch)
tree7fcb5e1c6c8e46ba082a9f7c02bd6c52ab29c379 /tools/perf/scripts/python/net_dropmonitor.py
parentbd5dd7aaa4c0834be98a532b16bc11335e1b26c1 (diff)
ath11k: fix missing error check on call to ath11k_pci_get_user_msi_assignment
The return error check on the call to ath11k_pci_get_user_msi_assignment is missing. If an error does occur, num_vectors is still set to zero and later on a division by zero can occur when variable vector is being calculated. Fix this by adding an error check after the call. Addresses-Coverity: ("Division or modulo by zero") Fixes: d4ecb90b3857 ("ath11k: enable DP interrupt setup for QCA6390") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions