Re: [PATCH] nl80211: fix memory leak in nl80211_get_ftm_responder_stats

From: Markus Elfring
Date: Sat Oct 05 2019 - 11:36:12 EST


> In nl80211_get_ftm_responder_stats, a new skb is created via nlmsg_new
> named msg. If nl80211hdr_put() fails, then msg should be released. The
> return statement should be replace by goto to error handling code.

Please improve this change description (also by avoiding a typo).

Regards,
Markus