commit | 949ca6b82e43b342dba153a9fd643fb1b5e9f034 | [log] [tgz] |
---|---|---|
author | Johannes Berg <johannes.berg@intel.com> | Fri Oct 02 09:46:04 2020 +0200 |
committer | David S. Miller <davem@davemloft.net> | Fri Oct 02 13:07:42 2020 -0700 |
tree | 2c6e4b48a50f0cbed8cc9600fa40c4146e9b52c3 | |
parent | 360f89874635b08057757376b8cc4faa221862e2 [diff] |
netlink: fix policy dump leak [ Upstream commit a95bc734e60449e7b073ff7ff70c35083b290ae9 ] If userspace doesn't complete the policy dump, we leak the allocated state. Fix this. Fixes: d07dcf9aadd6 ("netlink: add infrastructure to expose policies to userspace") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>