Spdk/lib/bdev/compress
paul luse 112a8b682d bdev/compress: fix issue with freeing mbufs in compress error path
mbufs are freed with a single call to the first mbuf in the chain
unless we hit an error before we chain them. So free them correctly
when chained and loop through the array one at a time and free them
that way if not.

Signed-off-by: paul luse <paul.e.luse@intel.com>
Change-Id: I80ebb86bc2147b42db89d24f8e985cacf7d4bceb
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455019
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-05-30 17:56:54 +00:00
..
Makefile bdev/compress: add compression vbdev module 2019-03-27 14:51:22 +00:00
vbdev_compress_rpc.c bdev/compress: replace RPC parm name with pm_path 2019-04-26 20:07:19 +00:00
vbdev_compress.c bdev/compress: fix issue with freeing mbufs in compress error path 2019-05-30 17:56:54 +00:00
vbdev_compress.h bdev/compress: replace RPC parm name with pm_path 2019-04-26 20:07:19 +00:00