]> asedeno.scripts.mit.edu Git - linux.git/commit
nl80211: do a struct assignment to radar_chandef instead of memcpy()
authorLuca Coelho <luciano.coelho@intel.com>
Wed, 17 Apr 2019 06:34:40 +0000 (09:34 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Apr 2019 11:02:11 +0000 (13:02 +0200)
commita680fe468df7550ed18fbcae30e382252fdc35c6
tree241b57f57956bf3fb1ff81db3499e3d1f7bbcb95
parent622fce81280aadb277dd3fc55c676b4bdc3e0527
nl80211: do a struct assignment to radar_chandef instead of memcpy()

We are copying one entire structure to another of the same type in
nl80211_notify_radar_detection, so it's simpler and safer to do a
struct assignment instead of memcpy().

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c