From: Chaskiel M Grundman Date: Thu, 15 Jan 2009 13:12:58 +0000 (+0000) Subject: osi-probe-check-result-cope-with-enoent-20090115 X-Git-Tag: openafs-devel-1_5_61~613 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=86225b60147d58ca71063a72be02236df1257407;p=packages%2Fo%2Fopenafs.git osi-probe-check-result-cope-with-enoent-20090115 LICENSE IPL10 in order for probing to work right --- 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); \ } \