perf tools: Fix incorrect fd error comparison
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 17 Jul 2014 08:43:09 +0000 (11:43 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 22 Jul 2014 13:18:57 +0000 (10:18 -0300)
commita6f6ae99f12e8154d5cde6e8366fc228f68d6ae5
treedac111c4ad4e20ea8f9ca570ce5f5686d03a3bf2
parent2336ebc32676df5b794acfe0c980583ec6c05f34
perf tools: Fix incorrect fd error comparison

Zero is a valid fd.  Error comparison should check for negative fd.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1405586590-13657-2-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/dso.c