Fix lock/ilock mismatch.
[rsc] --rw-rw-r-- M 8988 glenda sys 12365 Nov 21 07:08 sys/src/9/pc/kbd.c
/n/sourcesdump/2005/1121/plan9/sys/src/9/pc/kbd.c:317,326 -
/n/sourcesdump/2005/1122/plan9/sys/src/9/pc/kbd.c:317,326
/*
* get status
*/
- lock(&i8042lock);
+ ilock(&i8042lock);
s = inb(Status);
if(!(s&Inready)){
- unlock(&i8042lock);
+ iunlock(&i8042lock);
return;
}
/n/sourcesdump/2005/1121/plan9/sys/src/9/pc/kbd.c:328,334 -
/n/sourcesdump/2005/1122/plan9/sys/src/9/pc/kbd.c:328,334
* get the character
*/
c = inb(Data);
- unlock(&i8042lock);
+ iunlock(&i8042lock);
/*
* if it's the aux port...
|