grub2/0320-grub-core-disk-efi-efidisk.c-Really-limit-transfer-c.patch
Peter Jones f74b50e380 Rebase to upstream, fix a pile of bugs. The usual.
Signed-off-by: Peter Jones <pjones@redhat.com>
2013-06-12 15:37:08 -04:00

41 lines
1.4 KiB
Diff

From 9b6d4e170e3481e16f9db0311f548cb170217fe2 Mon Sep 17 00:00:00 2001
From: Andrey Borzenkov <arvidjaar@gmail.com>
Date: Tue, 16 Apr 2013 22:10:59 +0200
Subject: [PATCH 320/482] * grub-core/disk/efi/efidisk.c: Really limit
transfer chunk size.
---
ChangeLog | 4 ++++
grub-core/disk/efi/efidisk.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 10db262..b60a71d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
+ * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
+
+2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
+
* autogen.sh: Use "-f" in addition for "-h" when checking file presence.
2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
diff --git a/grub-core/disk/efi/efidisk.c b/grub-core/disk/efi/efidisk.c
index 5a6fc63..0e08d3b 100644
--- a/grub-core/disk/efi/efidisk.c
+++ b/grub-core/disk/efi/efidisk.c
@@ -549,7 +549,7 @@ grub_efidisk_readwrite (struct grub_disk *disk, grub_disk_addr_t sector,
status = efi_call_5 ((wr ? bio->write_blocks : bio->read_blocks), bio,
bio->media->media_id,
(grub_efi_uint64_t) sector,
- (grub_efi_uintn_t) size << disk->log_sector_size,
+ (grub_efi_uintn_t) len << disk->log_sector_size,
buf);
size -= len;
buf += len << disk->log_sector_size;
--
1.8.2.1