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

Next file: linux/drivers/char/wd501p.h
Previous file: linux/drivers/cdrom/sjcd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.62/linux/drivers/char/vt.c linux/drivers/char/vt.c
@@ -219,7 +219,9 @@
 	case KIOCSOUND:
 		if (!perm)
 			return -EPERM;
-		kd_mksound(1193180 / (unsigned int) arg, 0);
+		if (arg)
+			arg = 1193180 / arg;
+		kd_mksound(arg, 0);
 		return 0;
 
 	case KDMKTONE:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this