mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 05:58:57 +00:00
intpm: return only SMB bus error codes from SMB methods
PR: kern/25733 MFC after: 5 days
This commit is contained in:
parent
32048b2bff
commit
2885c2e4bb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234043
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user