On 2020/4/10 11:20, Dan Williams wrote:
On Thu, Apr 9, 2020 at 8:16 PM Wu Bo <wubo40(a)huawei.com>
wrote:
>
> From: Wu Bo <wubo40(a)huawei.com>
>
> 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.