mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Check pointer before deref in debug message
This commit is contained in:
parent
7038d527a6
commit
ec19a5a62f
4
lib/cache/lvmcache.c
vendored
4
lib/cache/lvmcache.c
vendored
@ -1110,8 +1110,8 @@ static int _lvmcache_update_vgid(struct lvmcache_info *info,
|
|||||||
|
|
||||||
if (!is_orphan_vg(vginfo->vgname))
|
if (!is_orphan_vg(vginfo->vgname))
|
||||||
log_debug("lvmcache: %s: setting %s VGID to %s",
|
log_debug("lvmcache: %s: setting %s VGID to %s",
|
||||||
dev_name(info->dev), vginfo->vgname,
|
(info) ? dev_name(info->dev) : "",
|
||||||
vginfo->vgid);
|
vginfo->vgname, vginfo->vgid);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user