Re: [PATCH] lightnvm: prevent memory leak in nvm_bb_chunk_sense

From: Markus Elfring
Date: Mon Sep 30 2019 - 03:16:40 EST


> To fix this issue I moved the __free_page call before error check.

Would the wording âMove the __free_page() call before the error check.â
be more succinct for the change description?

Can the following code variant be applied at the end of this function?

return ret ? ret : rqd.error;

Regards,
Markus