diff --git a/[refs] b/[refs] index c2e467cca998..ebd3d2295ade 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b7b435e81b7228af68b5d3bef277fce10100b369 +refs/heads/master: dc30a436903ccf180b0313d3fc3f44278a1d44c8 diff --git a/trunk/sound/oss/pas2_card.c b/trunk/sound/oss/pas2_card.c index dabf8a871dcc..7004e24d209f 100644 --- a/trunk/sound/oss/pas2_card.c +++ b/trunk/sound/oss/pas2_card.c @@ -333,6 +333,11 @@ static void __init attach_pas_card(struct address_info *hw_config) { char temp[100]; + if (pas_model < 0 || + pas_model >= ARRAY_SIZE(pas_model_names)) { + printk(KERN_ERR "pas2 unrecognized model.\n"); + return; + } sprintf(temp, "%s rev %d", pas_model_names[(int) pas_model], pas_read(0x2789));