1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

thin: fix lvconvert error path NULL dereference

For printing the name, use given command line parameter.
This commit is contained in:
Zdenek Kabelac 2012-06-05 14:55:00 +02:00
parent e9f9c6be26
commit 6bd3864b41
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.97 -
===============================
Fix lvconvert error path NULL pointer dereference.
Check for create_instance() fail in pvscan_lvmetad_single().
Use 64bit math for reserved memory and stack.
Add tests for kernel_send() errors in cmirrod.

View File

@ -1841,8 +1841,8 @@ static int _lvconvert_thinpool(struct cmd_context *cmd,
lp->pool_data_lv_name);
if (!pool_lv) {
log_error("Can't find pool logical volume %s.", pool_lv->name);
goto_out;
log_error("Can't find pool logical volume %s.", lp->lv_name);
return 0;
}
if ((pool_lv != metadata_lv)) {