Messages in this thread Patch in this message | | | From | (Bob Tracy - TDS) | Subject | ioctl(fd, KDMKTONE, arg) followup w/patch | Date | Wed, 13 Aug 1997 14:24:47 -0500 (CDT) |
| |
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--====
| |