patch-2.1.50 linux/drivers/char/vt.c

Next file: linux/drivers/pci/pci.c
Previous file: linux/drivers/char/uni_hash.tbl
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.49/linux/drivers/char/vt.c linux/drivers/char/vt.c
@@ -504,7 +504,7 @@
 		 * If the time is zero, turn off sound ourselves.
 		 */
 		ticks = HZ * ((arg >> 16) & 0xffff) / 1000;
-		count = ticks ? arg : 0;
+		count = ticks ? (arg & 0xffff) : 0;
 		kd_mksound(count, ticks);
 		return 0;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov