Prev: using grub.efi on fedora13? [was: Re: [PATCH[RFC] Quirk macbook pro 6,2 into ahci mode]
Next: [RFC PATCH v3 0/5] netdev: show a process of packets
From: David Daney on 19 Jul 2010 20:50 This 'fixes' another crash I encountered. Don't try to dereference NULL records. Signed-off-by: David Daney <ddaney(a)caviumnetworks.com> --- trace-graph.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/trace-graph.c b/trace-graph.c index f940874..a53ab84 100644 --- a/trace-graph.c +++ b/trace-graph.c @@ -2413,6 +2413,8 @@ static int load_handle(struct graph_info *ginfo, free_record(record); record = tracecmd_read_cpu_last(handle, cpu); + if (!record) + continue; if (record->ts > ginfo->end_time) ginfo->end_time = record->ts; -- 1.7.1.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |