mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Return ENXIO on error, not 0. Seems to have been skipped when converting
to newbus. Reviewed by: bde
This commit is contained in:
parent
6b713d5806
commit
9c918de3de
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56461
@ -1048,7 +1048,7 @@ sioattach(dev)
|
||||
if (siosetwater(com, com->it_in.c_ispeed) != 0) {
|
||||
enable_intr();
|
||||
free(com, M_DEVBUF);
|
||||
return (0);
|
||||
return (ENXIO);
|
||||
}
|
||||
enable_intr();
|
||||
termioschars(&com->it_in);
|
||||
|
@ -1048,7 +1048,7 @@ sioattach(dev)
|
||||
if (siosetwater(com, com->it_in.c_ispeed) != 0) {
|
||||
enable_intr();
|
||||
free(com, M_DEVBUF);
|
||||
return (0);
|
||||
return (ENXIO);
|
||||
}
|
||||
enable_intr();
|
||||
termioschars(&com->it_in);
|
||||
|
Loading…
Reference in New Issue
Block a user