dm snapshot persistent: fix missing cleanup in persistent_ctr error path
If an unsupported option is given then the early return from persistent_ctr() leaked memory allocated for the 'pstore' and never destroyed the 'metadata_wq'. Fixes: b0d3cc01 ("dm snapshot: add new persistent store option to support overflow") Signed-off-by: NSudip Mukherjee <sudip@vectorindia.org> Signed-off-by: NMike Snitzer <snitzer@redhat.com>
Showing
想要评论请 注册 或 登录