summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2012-04-08 20:48:39 +0000
committeravg <avg@FreeBSD.org>2012-04-08 20:48:39 +0000
commit7e7e5aed30ce08546c841f9c606c4c9e6f11d8cc (patch)
tree661b2cfc093455c064cdb7d3ab5e92c7fc1b0fe8 /sys
parentd41eccd983383caffb50bd5308ca9adf56975a89 (diff)
downloadFreeBSD-src-7e7e5aed30ce08546c841f9c606c4c9e6f11d8cc.zip
FreeBSD-src-7e7e5aed30ce08546c841f9c606c4c9e6f11d8cc.tar.gz
intpm: return only SMB bus error codes from SMB methods
PR: kern/25733 MFC after: 5 days
Diffstat (limited to 'sys')
-rw-r--r--sys/pci/intpm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c
index 375a56f..1e92909 100644
--- a/sys/pci/intpm.c
+++ b/sys/pci/intpm.c
@@ -272,7 +272,7 @@ intsmb_callback(device_t dev, int index, void *data)
case SMB_RELEASE_BUS:
break;
default:
- error = EINVAL;
+ error = SMB_EINVAL;
}
return (error);
@@ -519,7 +519,7 @@ intsmb_quick(device_t dev, u_char slave, int how)
data |= LSB;
break;
default:
- return (EINVAL);
+ return (SMB_EINVAL);
}
INTSMB_LOCK(sc);
@@ -774,7 +774,7 @@ intsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf)
}
*count = nread;
} else
- error = EIO;
+ error = SMB_EBUSERR;
}
INTSMB_UNLOCK(sc);
return (error);
OpenPOWER on IntegriCloud