Revert "wifi: mac80211_hwsim: check the return value of nla_put_u32"
authorJohannes Berg <johannes.berg@intel.com>
Tue, 22 Aug 2023 12:17:21 +0000 (14:17 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 22 Aug 2023 19:40:41 +0000 (21:40 +0200)
commit1b78dd34560e9962f8e917fe4adde6f2ab0eb89f
treed3376a74368cc653020261087bfd8997a0004952
parenta7a2ef0c4b3efbd7d6f3fabd87dbbc0b3f2de5af
Revert "wifi: mac80211_hwsim: check the return value of nla_put_u32"

This reverts commit b970ac68e0c4 ("wifi: mac80211_hwsim: check the
return value of nla_put_u32") since it introduced a memory leak in
the error path, which seems worse than sending an incomplete skb,
and the put can't fail anyway since the SKB was just allocated.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/virtual/mac80211_hwsim.c