Commit 989f26f5ad308f40a95f280bf9cd75e558d4f18d
Committed by
Mike Snitzer
1 parent
af91805a49
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
dm era: check for a non-NULL metadata object before closing it
era_ctr() may call era_destroy() before era->md is initialized so era_destory() must only close the metadata object if it is not NULL. Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Naohiro Aota <naota@elisp.net> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Cc: stable@vger.kernel.org # 3.15+
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
drivers/md/dm-era-target.c