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.