crypto/aesni_mb: fix memory leak in DOCSIS session
authorDavid Coyle <david.coyle@intel.com>
Thu, 16 Jul 2020 15:32:18 +0000 (16:32 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Sat, 18 Jul 2020 21:21:57 +0000 (23:21 +0200)
This patch improves the DOCSIS session creation as follows:
- it validates the security action type as well as the protocol before
  creating a session and now does this validation before allocating the
  session from the mempool

Fixes: fda5216fba55 ("crypto/aesni_mb: support DOCSIS protocol")

Signed-off-by: David Coyle <david.coyle@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>

No differences found