]> xenbits.xensource.com Git - qemu-xen.git/commit
block/nfs: fix nfs_client_open for filesize greater than 1TB
authorPeter Lieven <pl@kamp.de>
Mon, 27 Nov 2017 16:00:07 +0000 (17:00 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 6 Dec 2017 17:40:10 +0000 (11:40 -0600)
commit30e499bdc9ef2101e08d12ccbec5f8f692a8a70a
tree3c64fd5d7e0b68fb31b7774ea2a77d3960218c45
parente1a2a273278c5250ab08bf7d6553eda8991a5e35
block/nfs: fix nfs_client_open for filesize greater than 1TB

DIV_ROUND_UP(st.st_size, BDRV_SECTOR_SIZE) was overflowing ret (int) if
st.st_size is greater than 1TB.

Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Lieven <pl@kamp.de>
Message-id: 1511798407-31129-1-git-send-email-pl@kamp.de
Signed-off-by: Max Reitz <mreitz@redhat.com>
(cherry picked from commit f1a7ff770f7d71ee7833ff019aac9d6cc3d13f71)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/nfs.c