]> sourceware.org Git - lvm2.git/commit
Use pv from newly read_vg to avoid possible use of not initialized memory.
authorMilan Broz <mbroz@redhat.com>
Tue, 7 Apr 2009 10:22:14 +0000 (10:22 +0000)
committerMilan Broz <mbroz@redhat.com>
Tue, 7 Apr 2009 10:22:14 +0000 (10:22 +0000)
commit2112fc571a0dafa5f66f60ff62e6e634e3045960
tree5f02d1783259a0835dced0c7d3ab79482a961328
parent0c4379ff0f01573d6d2cee15d66191b180df1081
Use pv from newly read_vg to avoid possible use of not initialized memory.

If the vg in process_each_segment_in_pv is NULL, the pv struct
can be incomplete (for example lv_segs are not copied in get_pvs()
call).

We need use the new pv from just read-in volume group.

(The same code is in pvdisplay already.)
tools/toollib.c
This page took 0.039625 seconds and 5 git commands to generate.