commit | 2bf4fade54de995f84d319ae02003609dca450f3 | [log] [tgz] |
---|---|---|
author | Liping Zhang <liping.zhang@spreadtrum.com> | Sat Jul 23 16:00:31 2016 +0800 |
committer | Pablo Neira Ayuso <pablo@netfilter.org> | Sat Jul 23 12:22:07 2016 +0200 |
tree | 024cb3652c7f57ae1dc8ef1df2333a2d4a2c581d | |
parent | 96d1327ac2e3dc3ac4204fe3656dad0043fc0efd [diff] |
netfilter: nft_compat: put back match/target module if init fail If the user specify the invalid NFTA_MATCH_INFO/NFTA_TARGET_INFO attr or memory alloc fail, we should call module_put to the related match or target. Otherwise, we cannot remove the module even nobody use it. Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>