[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87r5r74b05.fsf@devron.myhome.or.jp>
Date: Mon, 07 Dec 2009 14:19:06 +0900
From: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
To: Xiao Guangrong <xiaoguangrong@...fujitsu.com>
Cc: Ingo Molnar <mingo@...e.hu>,
Frederic Weisbecker <fweisbec@...il.com>,
Paul Mackerras <paulus@...ba.org>,
Peter Zijlstra <peterz@...radead.org>,
Li Zefan <lizf@...fujitsu.com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 3/3] perf_event: fix __dsos__write_buildid_table()
Xiao Guangrong <xiaoguangrong@...fujitsu.com> writes:
> The remain buff size is 'len - pos->long_name_len - 1', not
> 'len - pos->long_name_len + 1'
>
> This bug is imported by:
> Commit-ID: 7691b1ec2e4a8d4bd88dcf88b29792399ebe1c91
> Gitweb: http://git.kernel.org/tip/7691b1ec2e4a8d4bd88dcf88b29792399ebe1c91
> Author: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
> AuthorDate: Sun, 6 Dec 2009 20:10:49 +0900
> Committer: Ingo Molnar <mingo@...e.hu>
> CommitDate: Sun, 6 Dec 2009 18:15:02 +0100
>
> perf tools: Misc small fixes
Oops, I forgot parens. Thanks for fixing it.
> Signed-off-by: Xiao Guangrong <xiaoguangrong@...fujitsu.com>
> ---
> tools/perf/util/header.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c
> index 08b6759..59a9c0b 100644
> --- a/tools/perf/util/header.c
> +++ b/tools/perf/util/header.c
> @@ -209,7 +209,7 @@ static int __dsos__write_buildid_table(struct list_head *head, int fd)
> err = do_write(fd, pos->long_name, pos->long_name_len + 1);
> if (err < 0)
> return err;
> - err = do_write(fd, zero_buf, len - pos->long_name_len + 1);
> + err = do_write(fd, zero_buf, len - pos->long_name_len - 1);
> if (err < 0)
> return err;
> }
--
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists