]> git.ipfire.org Git - thirdparty/qemu.git/commit
vvfat: Fix volume name assertion
authorKevin Wolf <kwolf@redhat.com>
Wed, 27 Apr 2016 12:11:38 +0000 (14:11 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 29 Apr 2016 09:14:08 +0000 (11:14 +0200)
commitebb72c9f066e5f85259e1541a6d3fb5bfd6e73ff
tree71d7d0db8339e35c1e4f6b02547d2150dfe112ed
parent0d48dfedc5c2beb418ad4c08b78de14e794bb199
vvfat: Fix volume name assertion

Commit d5941dd made the volume name configurable, but it didn't consider
that the rw code compares the volume name string to assert that the
first directory entry is the volume name. This made vvfat crash in rw
mode.

This fixes the assertion to compare with the configured volume name
instead of a literal string.

Cc: qemu-stable@nongnu.org
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block/vvfat.c