]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
perf tools: Fix faulty check
authorStoyan Gaydarov <sgayda2@uiuc.edu>
Thu, 30 Jul 2009 10:25:29 +0000 (05:25 -0500)
committerIngo Molnar <mingo@elte.hu>
Sun, 2 Aug 2009 11:47:59 +0000 (13:47 +0200)
This patch fixes a spelling error that has resulted from copy
and pasting. The location of the error was found using a
semantic patch but the semantic patch was not trying to find
these errors. After looking things over it seemed logical that
this change was needed. Please review it and then include the
patch if it is in fact the correct change.

Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1248949529-20891-1-git-send-email-sgayda2@uiuc.edu>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/symbol.c

index 28106059bf12b624a309661a82373db36d017f3c..b4fe0579bd6b1d4af97ee122aef7d2a204bb1392 100644 (file)
@@ -565,7 +565,7 @@ static int dso__load_sym(struct dso *self, int fd, const char *name,
                goto out_elf_end;
 
        secstrs = elf_getdata(sec_strndx, NULL);
-       if (symstrs == NULL)
+       if (secstrs == NULL)
                goto out_elf_end;
 
        nr_syms = shdr.sh_size / shdr.sh_entsize;