diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2008-12-06 23:26:02 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2008-12-06 23:26:02 +0000 |
commit | e6bc656165feaa55eb1bb3b7ba07f1e02c7e307b (patch) | |
tree | c72b76b735b5bc154e27235b50a32c00ae045050 /sys/dev/adb/adb_mouse.c | |
parent | a689f483835ae8389214b38c9fce209311c1a019 (diff) | |
download | FreeBSD-src-e6bc656165feaa55eb1bb3b7ba07f1e02c7e307b.zip FreeBSD-src-e6bc656165feaa55eb1bb3b7ba07f1e02c7e307b.tar.gz |
Fix some nasty race conditions in the VIA-CUDA driver that ended up preventing
my right mouse button and keyboard LEDs from working due to mangled
configuration packets. Fixed several other races and associated problems in the
main ADB stack that were exposed while fixing this.
Diffstat (limited to 'sys/dev/adb/adb_mouse.c')
-rw-r--r-- | sys/dev/adb/adb_mouse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/adb/adb_mouse.c b/sys/dev/adb/adb_mouse.c index 26edbc5..bba38c2 100644 --- a/sys/dev/adb/adb_mouse.c +++ b/sys/dev/adb/adb_mouse.c @@ -181,7 +181,7 @@ adb_mouse_attach(device_t dev) sc->mode.resolution = 200; break; case 4: - adb_read_register(dev,1,&r1_len,r1); + r1_len = adb_read_register(dev,1,r1); if (r1_len < 8) break; |