lkml.org 
[lkml]   [1997]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subjectioctl(fd, KDMKTONE, arg) followup w/patch
Date
Here's a quick patch that I believe implements the intended fix for
linux/drivers/char/vt.c. In any event, "count" should be related to
only the low-order 16 bits of "arg". Apply this to the 2.1.49 source.

--
--------Bob Tracy AFIWC/AFCERT rct@merkin.csap.af.mil--------
"If you make any money, the government shoves you in the creek once a
year with it in your pockets, and all that don't get wet you can keep."
-- Will Rogers

====--CUT HERE--====
--- linux/drivers/char/vt.c.orig Wed Aug 13 13:55:07 1997
+++ linux/drivers/char/vt.c Wed Aug 13 13:57:16 1997
@@ -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;
}
====--TUC EREH--====
\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.031 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site