Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1710338

[PATCH 1/5] trace-cmd: Fix incorrect malloc size arg: *item instead of item

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Michael Sartain <mikesart@fastmail.com>
Newsgroups linux.kernel
Subject [PATCH 1/5] trace-cmd: Fix incorrect malloc size arg: *item instead of item
Date Sat, 12 Aug 2017 19:50:01 +0200
Message-ID <udIHT-3VV-3@gated-at.bofh.it> (permalink)
References <udIye-3S9-23@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=1ULVww gSyb0ifejjmrpN5fngujhofkkYMCZCZawHfjc=; b=NdwGGFs6PeJwj/10rWwgaL Jj+KtAqdx3gSS2Y467hetUjaprSaSAfrLXRCUzDDEKH/Hxvq6o2ElqFVZM80uVQM 8+s4J1+A1OzT49EfBdHUP8wDxybLj/SEFMcf39ZaSxxiYLcwbw4BMOzHtkw/VniA 54hoDQjcThzwopvIrnVgE7Iqbwq1PQcO+xhjPmGH3awtj4KQWWzEbpk0qsUsswZX OI0Sv2kL/ZWP8QyHU9doNgJXTaxjqVayi0cOfWHIpswaohGoGUkBGfDYw8Zuae6a UQDWy7++RBsAptJOfMBLfEnjKuooVi++ImyDYMsZ7lpZHDBWRlxZR76whRrbYByw ==
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=1ULVwwgSyb0ifejjmrpN5fngujhofkkYMCZCZawHf jc=; b=NOcXuGdV3G/sVyNQ13v6LSpqPmEBFqxkLhLKIqZnf5Y6A0o98SZgQ30/O pMTySq+lhuaQtTd81jAoayk42nEjpfo7mwhFQh2FvB9DjdE86Y1dRt8oMhm4Fu1X evEzoPbwB8nUihJIA/kKHddE9dxXhC50PAR2HZnf3wU0k9O6sdfWKh0h7ezbPxfR c87av8llZ8VKNYqhunUhcUEKEOskEnJfDHWElF40E5EudtGr/cv3HNDPVJZGYcdz KEtDsBv6lDoe5vstb32zLOua246CnCxFPwtIU/IhgBOuRmw1SYU53CmzaJGkT1UL NpEEU+zuQOOFynn5GPwSnV1CndAOw==
X-Me-Sender <xms:XzuPWWllc-4gxyw6GuyvwEhil0P6edEGMKyol2GAm6OJW2knaMSABw>
X-Sasl-Enc bolT16neg5gRWrWmIaW+58nm+MxKVbwVoHObwlnpAN8f 1502559071
X-Mailer git-send-email 2.13.2
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 20
Organization linux.* mail to news gateway
X-Original-Cc Michael Sartain <mikesart@fastmail.com>, linux-kernel@vger.kernel.org
X-Original-Date Sat, 12 Aug 2017 11:30:43 -0600
X-Original-Message-ID <20170812173047.840-2-mikesart@fastmail.com>
X-Original-References <20170812173047.840-1-mikesart@fastmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1710338

Show key headers only | View raw


Signed-off-by: Michael Sartain <mikesart@fastmail.com>
---
 trace-dialog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/trace-dialog.c b/trace-dialog.c
index b5776cc..87e597a 100644
--- a/trace-dialog.c
+++ b/trace-dialog.c
@@ -97,7 +97,7 @@ static void push_cursor(GdkCursor *cursor)
 {
 	struct cursor_stack *item;
 
-	item = malloc_or_die(sizeof(item));
+	item = malloc_or_die(sizeof(*item));
 	item->next = cursor_stack;
 	cursor_stack = item;
 	item->cursor = cursor;
-- 
2.13.2

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/5] trace-cmd: Fixes for four small bugs plus minor cleanup Michael Sartain <mikesart@fastmail.com> - 2017-08-12 19:40 +0200
  [PATCH 1/5] trace-cmd: Fix incorrect malloc size arg: *item instead of item Michael Sartain <mikesart@fastmail.com> - 2017-08-12 19:50 +0200
  [PATCH 3/5] trace-cmd: Add ULL suffix to MISSING_EVENTS since ints shouldn't be left shifted by 31 Michael Sartain <mikesart@fastmail.com> - 2017-08-12 19:50 +0200
  [PATCH 4/5] trace-cmd: Use unsigned values in Hsieh's trace_hash fast hash function Michael Sartain <mikesart@fastmail.com> - 2017-08-12 19:50 +0200

csiph-web