]> 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)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 11 Aug 2024 07:51:51 +0000 (10:51 +0300)
commit7dccb4fd0b5fae51db210d91d2f1fd596f78e41a
tree99007599eb96663e352d7951685ccc6e3df4ff33
parent17962e1ea84529046731ad828dcf707231d97fc4
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>
(cherry picked from commit 21b25a0e466a5bba0a45600bb8100ab564202ed1)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
block/vvfat.c