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