Fixed bounds checking of unit number in promopen(). Minor numbers can

be negative.
This commit is contained in:
Bruce Evans 2000-01-09 16:24:55 +00:00
parent 218a2cd2bc
commit 82ca0dc9d1

View file

@ -101,7 +101,7 @@ promopen(dev, flag, mode, p)
int s;
int error = 0, setuptimeout = 0;
if (!pmap_uses_prom_console() || unit >= 1)
if (!pmap_uses_prom_console() || unit != 0)
return ENXIO;
s = spltty();