Re: [PATCH] dm: check era->md is non-NULL before closing it

2014-05-20 Thread Joe Thornber
On Tue, May 20, 2014 at 12:53:56PM +0900, na...@elisp.net wrote: > In era_ctr(), era->md remain NULL until it's set after metadata_open(). > On the other hand, era_destroy() assume era->md is non-NULL and it is > called by era_ctr() before initializing the value. Thanks. This change went into my

[PATCH] dm: check era->md is non-NULL before closing it

2014-05-19 Thread naota
In era_ctr(), era->md remain NULL until it's set after metadata_open(). On the other hand, era_destroy() assume era->md is non-NULL and it is called by era_ctr() before initializing the value. This patch just checks if era->md is non-NULL. Signed-off-by: Naohiro Aota --- drivers/md/dm-era-targe