Skip to contentSkip to conversation

perfquery.c: Fix dumping of PortSamplesControl

PATCH Applied Hal Rosenstock 2 participants 2 messages Aug 1, 2013 – Aug 12, 2013 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perfquery.c: Fix dumping of PortSamplesControl

was stopping after CounterSelect10 field as insufficient buffer size for dumping this attribute.

---

src/perfquery.c +1 -1
index 9a69ee1..112d92c 100644
@@ -566,7 +566,7 @@ static void vlxmittimecc_query(ib_portid_t * portid, int port, int mask)
 
 void dump_portsamples_control(ib_portid_t * portid, int port)
 {
-	char buf[1024];
+	char buf[1280];
 
 	memset(pc, 0, sizeof(pc));
 	if (!pma_query_via(pc, portid, port, ibd_timeout,

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 51FAA4BA.7080800-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

Applied
#2 lore raw
Quoted 5 lines · On Thu, 1 Aug 2013 14:11:06 -0400 Hal Rosenstock…

was stopping after CounterSelect10 field as insufficient buffer size for dumping this attribute.

Thanks, applied,
Ira

Quoted 18 lines

---

src/perfquery.c +1 -2
index 9a69ee1..112d92c 100644
@@ -566,7 +566,7 @@ static void vlxmittimecc_query(ib_portid_t * portid, int port, int mask)
 
 void dump_portsamples_control(ib_portid_t * portid, int port)
 {
-	char buf[1024];
+	char buf[1280];
 
 	memset(pc, 0, sizeof(pc));
 	if (!pma_query_via(pc, portid, port, ibd_timeout,
--

To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 5 lines
Ira Weiny <[email protected]>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html