On 2020/4/10 11:20, Dan Williams wrote:
On Thu, Apr 9, 2020 at 8:16 PM Wu Bo <[email protected]> wrote:

From: Wu Bo <[email protected]>

When the initialization fails, add the cleanup resources
in pmem_attach_disk() function

Are you familiar with devm?

devm routines take care of this automatically on driver probe error conditions.


Sorry, i did not pay attention to devm_add_action_or_reset() will automatically call clean up action on driver probe error conditions. Please ignore this patch.

thanks.
_______________________________________________
Linux-nvdimm mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to