commit | 6f9c9607d445a05267eb4830e5375535f5a547a2 | [log] [tgz] |
---|---|---|
author | Javier González <javier@javigon.com> | Fri Jun 01 15:04:23 2018 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Jun 01 07:43:53 2018 -0600 |
tree | c0b396d03dece80503fc00f093102d4c11e1a6db | |
parent | 8e55c07b2b9c24f1154dafd9a01befc00430df1e [diff] |
lightnvm: pblk: check for chunk size before allocating it Do the check for the chunk state after making sure that the chunk type is supported. Fixes: 32ef9412c114 ("lightnvm: pblk: implement get log report chunk") Signed-off-by: Javier González <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <mb@lightnvm.io> Signed-off-by: Jens Axboe <axboe@kernel.dk>