grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Andrey Borzenkov <arvidjaar@gmail.com>
To: grub-devel@gnu.org
Subject: [PATCH] really limit size of efidisk transfer to 0x500
Date: Tue, 16 Apr 2013 21:39:54 +0400	[thread overview]
Message-ID: <1366133994-12986-1-git-send-email-arvidjaar@gmail.com> (raw)

Rev 4859 failed to actually limit transfer size.

Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>

---
 ChangeLog                    | 4 ++++
 grub-core/disk/efi/efidisk.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 6f33ff1..77a0819 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-04-16  Andrey Borzenkov <arvidjaar@gmail.com>
+
+	* grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
+
 2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
 2013-04-15  Peter Jones <pjones@redhat.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;
-- 
tg: (1f1bfdf..) u/efi-disk-0x500 (depends on: master)


                 reply	other threads:[~2013-04-16 17:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1366133994-12986-1-git-send-email-arvidjaar@gmail.com \
    --to=arvidjaar@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).