summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_ctf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_ctf.c')
-rw-r--r--sys/kern/kern_ctf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_ctf.c b/sys/kern/kern_ctf.c
index bdff96e..2737860 100644
--- a/sys/kern/kern_ctf.c
+++ b/sys/kern/kern_ctf.c
@@ -90,7 +90,7 @@ link_elf_ctf_get(linker_file_t lf, linker_ctf_t *lc)
* ctfcnt to -1. See below.
*/
if (ef->ctfcnt < 0)
- return (0);
+ return (EFTYPE);
/* Now check if we've already loaded the CTF data.. */
if (ef->ctfcnt > 0) {
OpenPOWER on IntegriCloud