diff options
author | 2018-11-02 10:17:48 -0700 | |
---|---|---|
committer | 2018-11-06 18:22:50 +0200 | |
commit | 79169f14865503fb3c1571ae3f9c456c3ca74865 (patch) | |
tree | ad7b817826ea2405cdc2d138e65b7c3e2e7417f9 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ath10k: assign 'n_cipher_suites' for WCN3990 (diff) | |
download | wireguard-linux-79169f14865503fb3c1571ae3f9c456c3ca74865.tar.xz wireguard-linux-79169f14865503fb3c1571ae3f9c456c3ca74865.zip |
ath10k: don't assume this is a PCI dev in generic code
Not all devices using this driver are backed by a PCI device, so it's
not fair to assume 'to_pci_dev()' is valid. Fortunately, we only were
using this to convert straight back to a bare 'device', which means we
were only doing no-op pointer arithmetic, and not actually accessing
potentially out-of-bounds memory. But this is still bad practice.
Just use 'ar->dev' directly, since that's really all we're looking for.
Fixes: 209b2a68de76 ("ath10k: add platform regulatory domain support")
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions