cons: disable dangerous conswrites()
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 2 May 2019 13:45:30 +0000 (09:45 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 2 May 2019 13:45:30 +0000 (09:45 -0400)
commit967a0fe2644d511bbf385ded81cd89b759a7d795
tree84cbfabd39f06846f778dcdfb25274bf3a3b57e9
parent3925ece97311a5a22607e9c252dbf36dc3f396d8
cons: disable dangerous conswrites()

We don't use either of those #cons variables.  consctl should be
rewritten, or just outright removed.  sysctl looked like it was leaking
memory and falling through to another case.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/dev/cons.c