]> git.ipfire.org Git - thirdparty/grub.git/commit
diskfilter: fix crash in validate_lv for mdraid arrays
authorAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 14 Feb 2015 14:55:35 +0000 (17:55 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 14 Feb 2015 14:56:01 +0000 (17:56 +0300)
commite27fdbd6866a3dc9c6ee4d777d89c861f04368e7
tree6e8033bd5812c40cfee9584f2b368ad562b674c3
parent32cd33bd19348afb77ab849846e0b6d6157ea308
diskfilter: fix crash in validate_lv for mdraid arrays

Commit 750f4bacd3262376ced3f837d8dc78f834ca233a put LV validation before
actual vg assignment. Make grub_diskfilter_make_raid to assign ->vg as
happens in other cases for consistency. Also clean up redundant code and add
explicit NULL lv->vg check in validate_lv.

Also fix segment validation in validate_lv; it became obvious when crash
was fixed.

Closes: 44199
grub-core/disk/diskfilter.c