]> git.proxmox.com Git - grub2.git/commit
diskfilter: fix double free of lv names for mdraid
authorAndrei Borzenkov <arvidjaar@gmail.com>
Sat, 14 Feb 2015 16:08:58 +0000 (19:08 +0300)
committerColin Watson <cjwatson@debian.org>
Sun, 14 Jun 2015 08:59:51 +0000 (09:59 +0100)
commit3f2e7e9bc37da52b51b6211e77af740a5f8bb02d
tree9af21cc50a0d24691df78fd717a3c612e62406d6
parent200dff350b040efe9780262a6ca57ec2432ce67a
diskfilter: fix double free of lv names for mdraid

Avoid micro-optimization in grub_diskfilter_make_raid and make sure
name and fullname are independent strings. This avoids need to special
case it everywhere else.

Also fix memory leak in failure case in grub_diskfilter_make_raid.

Closes: 41582
Last-Update: 2015-05-19
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1330963
Origin: upstream, http://git.savannah.gnu.org/cgit/grub.git/commit/?id=fc535b32b9fe0cd84213724ffba43b98e2da6ab4
Patch-Name: fix_diskfilter_lv_name_dblfree.patch
grub-core/disk/diskfilter.c