Chicken Little WARNING kkleiger, a FPS in 96 Kilobytes

Chicken Little WARNING kkleiger, a FPS in 96 Kilobytes

Post by blog_smir » Mon, 19 Apr 2004 10:33:42


I ran Adaware and Spybot, got the latest virus definitions, scanned,
ran some trojan cleaners, got nothing, then ran .kklieger, then ran
Adaware, Spybot, virus scanner and trojan cleaners again. Nothing.
This is really weird. First, there are these people that can't
believe a DirectX9 First Person Shooter with multiple levels, multiple
weapons, multiple powerups and healths, multiple animated creature
enemies, multiple visual effects, multiple sound effects and theme
music can possibly be coded in 96 kilobytes. Then, conversely, through
some almost psychotically illogical reasoning, determine it is so
small and can manage to do all this, that somehow it must also be
loading viruses, trojans and spyware code on top of the FPS code.
Really makes me wonder about some people around here.
 
 
 

1. =?UTF-8?Q?=E2=96=B3=E2=96=B2=E2=96=B3wholesalw_cap_ed_hardy_cap_coogi_cap_lv_cap?= =?UTF-8?Q?_etc_with_factory_price?=

2. WARNING: at sound/core/sound_oss.c:96 snd_oss_kernel_minor+0xdf/0x120 [snd]()

t Mon, 18 Jan 2010 12:36:38 +0100,
John Kacur wrote:

OK, then the ALSA core driver behavior is correct. But, another
question is why such a strange number is passed. Let me see the
code...

static int alsa_index = ~((1 << (SNDRV_CARDS - 3)) - 1); /* last three slots */

So, this behavior is intentional, too.

In short, the warning message is just superfluous.
The patch below fixes the issue.


thanks,

Takashi

---
diff --git a/sound/core/sound_oss.c b/sound/core/sound_oss.c
index 7fe1226..0c164e5 100644
--- a/sound/core/sound_oss.c
+++ b/sound/core/sound_oss.c
@@ -93,7 +93,7 @@ static int snd_oss_kernel_minor(int type, struct snd_card *card, int dev)
default:
return -EINVAL;
}
- if (snd_BUG_ON(minor < 0 || minor >= SNDRV_OSS_MINORS))
+ if (minor < 0 || minor >= SNDRV_OSS_MINORS)
return -EINVAL;
return minor;
}
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/