grub2/0251-grub-core-bus-usb-usbtrans.c-grub_usb_bulk_readwrite.patch
2013-05-02 16:54:52 -04:00

43 lines
1.3 KiB
Diff

From c9e516f1d40681546719f1bbf33f81db8e968361 Mon Sep 17 00:00:00 2001
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Date: Thu, 4 Apr 2013 08:56:45 +0200
Subject: [PATCH 251/364] * grub-core/bus/usb/usbtrans.c
(grub_usb_bulk_readwrite_packetize): Init err.
---
ChangeLog | 5 +++++
grub-core/bus/usb/usbtrans.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 8a3fd45..7bbcffa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
+ * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
+ Init err.
+
+2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
+
* util/grub-setup.c (setup): Handle some corner cases.
2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
diff --git a/grub-core/bus/usb/usbtrans.c b/grub-core/bus/usb/usbtrans.c
index 533c3e7..557e71c 100644
--- a/grub-core/bus/usb/usbtrans.c
+++ b/grub-core/bus/usb/usbtrans.c
@@ -343,7 +343,7 @@ grub_usb_bulk_readwrite_packetize (grub_usb_device_t dev,
grub_size_t size, char *data)
{
grub_size_t actual, transferred;
- grub_usb_err_t err;
+ grub_usb_err_t err = GRUB_USB_ERR_NONE;
grub_size_t current_size, position;
grub_size_t max_bulk_transfer_len = MAX_USB_TRANSFER_LEN;
grub_size_t max;
--
1.8.1.4