]> 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>
Fri, 4 Sep 2015 11:03:47 +0000 (12:03 +0100)
commit874a6fb6e8db5c86ea3448e89a559070e3b947cb
tree05c65094cbb38f75c69b550b8b81f598b5223f1e
parent4eded66960cc60d824dce6a86b6c5ad7f17d4ff4
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