crypto/scheduler: fix memory leak
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 26 Apr 2018 15:09:50 +0000 (16:09 +0100)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 10 May 2018 16:46:19 +0000 (17:46 +0100)
commit7b2491a62dcc4da2ad5afca2dbba458588126c23
treea2c835c3a23b5534a8fe3b27532eb14eb0b0f96e
parent06f0a569972bebe22feeffd92c283954abc08359
crypto/scheduler: fix memory leak

If private context creation fails, the memory
allocated for it and for some of the rings created
was being leaked.
In case of failure, it must be freed.

Fixes: 4c07e0552f0a ("crypto/scheduler: add multicore scheduling mode")
Cc: stable@dpdk.org
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
drivers/crypto/scheduler/scheduler_multicore.c