mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Fixed bounds checking of unit number in promopen(). Minor numbers can
be negative.
This commit is contained in:
parent
218a2cd2bc
commit
82ca0dc9d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue