OSDN Git Service

mac80211: warn only once in check_sdata_in_driver() at each caller
authorJohannes Berg <johannes.berg@intel.com>
Thu, 30 Jul 2020 13:52:13 +0000 (15:52 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 31 Jul 2020 07:27:02 +0000 (09:27 +0200)
commitc8ad010665c0b85c6a35466b2159e907b8dd85d1
tree126562ba3f0b47989db6e6aaf92226f146e84a98
parentf96622749a67d40ad5efe8a58d5fc95313097aa0
mac80211: warn only once in check_sdata_in_driver() at each caller

Ben Greear has repeatedly reported in the past (for a few years
probably) that this triggers repeatedly in certain scenarios.

Make this a macro so that each callsite can trigger the warning
only once - that will still give us an idea of what's going on
and what paths can reach it, but avoids being too noisy.

Link: https://lore.kernel.org/r/20200730155212.06fd3a95dbfb.I0b16829aabfaf5f642bce401502a29d16e2dd444@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/driver-ops.h