From 7c499cfaa3a9f46707d257599294869e830129bf Mon Sep 17 00:00:00 2001 From: Asim Kadav Date: Thu, 3 Jan 2013 11:47:26 -0600 Subject: [PATCH] --- yaml --- r: 348412 b: refs/heads/master c: dc30a436903ccf180b0313d3fc3f44278a1d44c8 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/oss/pas2_card.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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));