diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-02-25 17:11:18 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-02-25 17:11:18 +0100 |
commit | b2d79920255fc405b972e4c900e47f4a1046e044 (patch) | |
tree | b0ee1c462368b365880b6adb2fb8ea6b64b5336f /sys/src/9/pc/devvga.c | |
parent | d3f4786a1fcfb3cf8eba0cad2457622c6487e0e9 (diff) |
kernel: properly handle bad attach specifiers
- only accept decimal for numeric device id's
- exclude negative device id's
- device id's out of range yield Enodev
Diffstat (limited to 'sys/src/9/pc/devvga.c')
-rw-r--r-- | sys/src/9/pc/devvga.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/pc/devvga.c b/sys/src/9/pc/devvga.c index 77048bf06..ab307f9fb 100644 --- a/sys/src/9/pc/devvga.c +++ b/sys/src/9/pc/devvga.c @@ -90,7 +90,7 @@ static Chan* vgaattach(char* spec) { if(*spec && strcmp(spec, "0")) - error(Eio); + error(Enodev); return devattach('v', spec); } |