]> git.ipfire.org Git - thirdparty/qemu.git/commit
vvfat: Fix usage of `info.file.offset`
authorAmjad Alsharafi <amjadsharafi10@gmail.com>
Sat, 20 Jul 2024 10:13:31 +0000 (18:13 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 6 Aug 2024 18:12:39 +0000 (20:12 +0200)
commit21b25a0e466a5bba0a45600bb8100ab564202ed1
treeea88db4a76e7a523b9211383fdec4aad8139a0c4
parentb881cf00c99e03bc8a3648581f97736ff275b18b
vvfat: Fix usage of `info.file.offset`

The field is marked as "the offset in the file (in clusters)", but it
was being used like this
`cluster_size*(nums)+mapping->info.file.offset`, which is incorrect.

Signed-off-by: Amjad Alsharafi <amjadsharafi10@gmail.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <72f19a7903886dda1aa78bcae0e17702ee939262.1721470238.git.amjadsharafi10@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vvfat.c