Re: [PATCH] 2.5.56 sound/oss/sb_mixer.c bounds check

ryan (ryan@ryanflynn.com)
Tue, 14 Jan 2003 23:37:37 -0500


Andrew Morton wrote:
--snip--
> It would be better to do:
>
> if (dev < 0 || dev >= ARRAY_SIZE(smw_mix_regs))
>

some bounds checking and general housecleaning

http://www.0x80.org/patches/2.5.56/sb_mixer.diff

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/