|
|
a5bd9f6 |
From e296c452399417a814ab8b025234235d7ea1552e Mon Sep 17 00:00:00 2001
|
|
|
a5bd9f6 |
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
a5bd9f6 |
Date: Fri, 1 Feb 2013 21:32:17 +0100
|
|
|
a5bd9f6 |
Subject: [PATCH 145/364] * grub-core/bus/usb/serial/common.c
|
|
|
a5bd9f6 |
(grub_usbserial_attach): Fix missing zero-out of port structure.
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
---
|
|
|
a5bd9f6 |
ChangeLog | 5 +++++
|
|
|
a5bd9f6 |
grub-core/bus/usb/serial/common.c | 2 +-
|
|
|
a5bd9f6 |
2 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
diff --git a/ChangeLog b/ChangeLog
|
|
|
a5bd9f6 |
index e5b71cf..7bae470 100644
|
|
|
a5bd9f6 |
--- a/ChangeLog
|
|
|
a5bd9f6 |
+++ b/ChangeLog
|
|
|
a5bd9f6 |
@@ -1,3 +1,8 @@
|
|
|
a5bd9f6 |
+2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
+ * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
|
|
|
a5bd9f6 |
+ zero-out of port structure.
|
|
|
a5bd9f6 |
+
|
|
|
a5bd9f6 |
2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
* grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
|
|
|
a5bd9f6 |
diff --git a/grub-core/bus/usb/serial/common.c b/grub-core/bus/usb/serial/common.c
|
|
|
a5bd9f6 |
index 55d1884..9530259 100644
|
|
|
a5bd9f6 |
--- a/grub-core/bus/usb/serial/common.c
|
|
|
a5bd9f6 |
+++ b/grub-core/bus/usb/serial/common.c
|
|
|
a5bd9f6 |
@@ -51,7 +51,7 @@ grub_usbserial_attach (grub_usb_device_t usbdev, int configno, int interfno,
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
interf = usbdev->config[configno].interf[interfno].descif;
|
|
|
a5bd9f6 |
|
|
|
a5bd9f6 |
- port = grub_malloc (sizeof (*port));
|
|
|
a5bd9f6 |
+ port = grub_zalloc (sizeof (*port));
|
|
|
a5bd9f6 |
if (!port)
|
|
|
a5bd9f6 |
{
|
|
|
a5bd9f6 |
grub_print_error ();
|
|
|
a5bd9f6 |
--
|
|
|
a5bd9f6 |
1.8.1.4
|
|
|
a5bd9f6 |
|