From 86225b60147d58ca71063a72be02236df1257407 Mon Sep 17 00:00:00 2001 From: Chaskiel M Grundman Date: Thu, 15 Jan 2009 13:12:58 +0000 Subject: [PATCH] osi-probe-check-result-cope-with-enoent-20090115 LICENSE IPL10 in order for probing to work right --- src/afs/LINUX/osi_probe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/afs/LINUX/osi_probe.c b/src/afs/LINUX/osi_probe.c index f661e9ea3..91b95f6fe 100644 --- a/src/afs/LINUX/osi_probe.c +++ b/src/afs/LINUX/osi_probe.c @@ -1210,14 +1210,14 @@ static void *try_harder(probectl *P, PROBETYPE *ptr, unsigned long datalen) if (probe_debug & 0x0001) { \ printk("<7>osi_probe: %s = 0x%016lx %s\n", P->symbol, (unsigned long)(x), (m)); \ } \ - if ((x)) { \ + if ((x) && ((int)(x)) != -ENOENT) { \ *method = (m); \ final_answer = (void *)(x); \ } \ } while (0) #else #define check_result(x,m) do { \ - if ((x)) { \ + if ((x) && ((int)(x)) != -ENOENT) { \ *method = (m); \ return (void *)(x); \ } \ -- 2.39.5