diff options
author | Antoine Tenart <antoine.tenart@free-electrons.com> | 2017-11-28 14:19:48 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-28 16:09:50 +0100 |
commit | ba2d8d887d962c2f790e6dc01b2fd25b4608720b (patch) | |
tree | 8d64dacb5b60e2332c6c9679ba8a9bb1785f01d3 /crypto/asymmetric_keys/pkcs7_parser.h | |
parent | Merge branch 'mlxsw-GRE-offloading-fixes' (diff) | |
download | linux-ba2d8d887d962c2f790e6dc01b2fd25b4608720b.tar.xz linux-ba2d8d887d962c2f790e6dc01b2fd25b4608720b.zip |
net: mvpp2: fix the txq_init error path
When an allocation in the txq_init path fails, the allocated buffers
end-up being freed twice: in the txq_init error path, and in txq_deinit.
This lead to issues as txq_deinit would work on already freed memory
regions:
kernel BUG at mm/slub.c:3915!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
This patch fixes this by removing the txq_init own error path, as the
txq_deinit function is always called on errors. This was introduced by
TSO as way more buffers are allocated.
Fixes: 186cd4d4e414 ("net: mvpp2: software tso support")
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/asymmetric_keys/pkcs7_parser.h')
0 files changed, 0 insertions, 0 deletions