diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-06-26 20:42:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-06-26 20:42:18 +0000 |
commit | 95c5443b843c7875794c17aeba33213b71ba4dbb (patch) | |
tree | 0c25039640bb2607a15f2792558ea5b2b4c1a48d /target/linux/generic-2.4/patches/222-sound.patch | |
parent | c4f3caef75c247bcce4502391c072e10f741430a (diff) | |
download | upstream-95c5443b843c7875794c17aeba33213b71ba4dbb.tar.gz upstream-95c5443b843c7875794c17aeba33213b71ba4dbb.tar.bz2 upstream-95c5443b843c7875794c17aeba33213b71ba4dbb.zip |
remove generic linux 2.4 support
SVN-Revision: 21948
Diffstat (limited to 'target/linux/generic-2.4/patches/222-sound.patch')
-rw-r--r-- | target/linux/generic-2.4/patches/222-sound.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/target/linux/generic-2.4/patches/222-sound.patch b/target/linux/generic-2.4/patches/222-sound.patch deleted file mode 100644 index 7f3a1a331b..0000000000 --- a/target/linux/generic-2.4/patches/222-sound.patch +++ /dev/null @@ -1,26 +0,0 @@ ---- a/drivers/sound/sound_core.c -+++ b/drivers/sound/sound_core.c -@@ -174,9 +174,9 @@ static int sound_insert_unit(struct soun - } - - if (r == low) -- sprintf (name_buf, "%s", name); -+ snprintf (name_buf, sizeof(name_buf), "%s", name); - else -- sprintf (name_buf, "%s%d", name, (r - low) / SOUND_STEP); -+ snprintf (name_buf, sizeof(name_buf), "%s%d", name, (r - low) / SOUND_STEP); - s->de = devfs_register (devfs_handle, name_buf, - DEVFS_FL_NONE, SOUND_MAJOR, s->unit_minor, - S_IFCHR | mode, fops, NULL); -@@ -507,9 +507,9 @@ int soundcore_open(struct inode *inode, - * ALSA toplevel modules for soundcards, thus we need - * load them at first. [Jaroslav Kysela <perex@jcu.cz>] - */ -- sprintf(mod, "sound-slot-%i", unit>>4); -+ snprintf(mod, sizeof(mod), "sound-slot-%i", unit>>4); - request_module(mod); -- sprintf(mod, "sound-service-%i-%i", unit>>4, chain); -+ snprintf(mod, sizeof(mod), "sound-service-%i-%i", unit>>4, chain); - request_module(mod); - spin_lock(&sound_loader_lock); - s = __look_for_unit(chain, unit); |