Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348412
b: refs/heads/master
c: dc30a43
h: refs/heads/master
v: v3
  • Loading branch information
Asim Kadav authored and Takashi Iwai committed Jan 4, 2013
1 parent e87b679 commit 7c499cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b7b435e81b7228af68b5d3bef277fce10100b369
refs/heads/master: dc30a436903ccf180b0313d3fc3f44278a1d44c8
5 changes: 5 additions & 0 deletions trunk/sound/oss/pas2_card.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 7c499cf

Please sign in to comment.