summaryrefslogtreecommitdiffstats
path: root/sound/isa
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-12-25 11:40:26 +0100
committerTakashi Iwai <tiwai@suse.de>2008-12-25 11:40:26 +0100
commit86b3aa390b4b9925f16a21b98441fd7abdb9fff2 (patch)
tree9eb9d429a88d2301667198e30842502556b715f2 /sound/isa
parente4456e71618ec2c98084c15824d93e997955b60c (diff)
parentebef7cfc81942686a994ca6239b195040f5d1e4d (diff)
downloadtalos-op-linux-86b3aa390b4b9925f16a21b98441fd7abdb9fff2.tar.gz
talos-op-linux-86b3aa390b4b9925f16a21b98441fd7abdb9fff2.zip
Merge branch 'topic/ca0106' into to-push
Diffstat (limited to 'sound/isa')
-rw-r--r--sound/isa/sb/sb8.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/isa/sb/sb8.c b/sound/isa/sb/sb8.c
index 667eccc676a4..ea06877be4b1 100644
--- a/sound/isa/sb/sb8.c
+++ b/sound/isa/sb/sb8.c
@@ -140,8 +140,10 @@ static int __devinit snd_sb8_probe(struct device *pdev, unsigned int dev)
break;
}
}
- if (i >= ARRAY_SIZE(possible_ports))
+ if (i >= ARRAY_SIZE(possible_ports)) {
+ err = -EINVAL;
goto _err;
+ }
}
acard->chip = chip;
OpenPOWER on IntegriCloud