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
@ -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…
x
Reference in New Issue
Block a user