From: bmarzins@sourceware.org
To: dm-cvs@sourceware.org, dm-devel@redhat.com
Subject: multipath-tools/path_priority/pp_alua rtpg.c
Date: 26 Oct 2011 04:53:45 -0000 [thread overview]
Message-ID: <20111026045345.16638.qmail@sourceware.org> (raw)
CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: bmarzins@sourceware.org 2011-10-26 04:53:44
Modified files:
path_priority/pp_alua: rtpg.c
Log message:
Fix for bz #740512. zero out buffers for do_inquiry and do_rtpg.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/path_priority/pp_alua/rtpg.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC6&r1=1.3.2.6&r2=1.3.2.7
--- multipath-tools/path_priority/pp_alua/rtpg.c 2011/10/24 13:41:32 1.3.2.6
+++ multipath-tools/path_priority/pp_alua/rtpg.c 2011/10/26 04:53:44 1.3.2.7
@@ -165,6 +165,7 @@
struct inquiry_data inq;
int rc;
+ memset((unsigned char *)&inq, 0, sizeof(inq));
rc = do_inquiry(fd, 0, 0x00, &inq, sizeof(inq));
if (!rc) {
rc = inquiry_data_get_tpgs(&inq);
@@ -181,6 +182,7 @@
struct vpd83_dscr * dscr;
int rc;
+ memset(buf, 0, sizeof(buf));
rc = do_inquiry(fd, 1, 0x83, buf, sizeof(buf));
if (!rc) {
vpd83 = (struct vpd83_data *) buf;
@@ -266,6 +268,7 @@
"%u bytes\n", buflen);
return -RTPG_RTPG_FAILED;
}
+ memset(buf, 0, buflen);
rc = do_rtpg(fd, buf, buflen);
if (rc < 0)
goto out;
@@ -279,6 +282,7 @@
return -RTPG_RTPG_FAILED;
}
buflen = scsi_buflen;
+ memset(buf, 0, buflen);
rc = do_rtpg(fd, buf, buflen);
if (rc < 0)
goto out;
next reply other threads:[~2011-10-26 4:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-26 4:53 bmarzins [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-07-07 18:44 multipath-tools/path_priority/pp_alua rtpg.c bmarzins
2009-04-08 21:38 bmarzins
2009-04-08 22:08 ` Konrad Rzeszutek
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=20111026045345.16638.qmail@sourceware.org \
--to=bmarzins@sourceware.org \
--cc=dm-cvs@sourceware.org \
--cc=dm-devel@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.