]> git.ipfire.org Git - thirdparty/grub.git/commit
Store the loopback device as data on loopback grub_disk structures,
authorColin Watson <cjwatson@ubuntu.com>
Fri, 1 Apr 2011 16:04:10 +0000 (17:04 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Fri, 1 Apr 2011 16:04:10 +0000 (17:04 +0100)
commit2cccc747acc482e710e3dd23c672ce6151fd59e9
tree9a8c1395a123a812fd9a598e19379db4b54deeac
parent186ae367af232e0c8faa43abad07085d5787071c
Store the loopback device as data on loopback grub_disk structures,
rather than the file it points to.  This fixes use of freed memory
if an existing loopback device is replaced.

* grub-core/disk/loopback.c (grub_loopback_open): Store dev in
disk->data, not dev->file.
(grub_loopback_read): Adjust file assignment to match.
Fixes Ubuntu bug #742967.
ChangeLog
grub-core/disk/loopback.c