X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=sound%2Fisa%2Fsb%2Fsb8.c;h=dc27a480c2d9bf8156a0376cd0f1788eb34df2b3;hb=7a74198f587b3cfd5c4c5fe3cb8b46188c9ae02d;hp=aa2a83eb81a988a5e5947d9edce8afae4c91cf6f;hpb=5160bcce5c3c80de7d8722511c144d3041409657;p=thirdparty%2Fkernel%2Fstable.git diff --git a/sound/isa/sb/sb8.c b/sound/isa/sb/sb8.c index aa2a83eb81a98..dc27a480c2d9b 100644 --- a/sound/isa/sb/sb8.c +++ b/sound/isa/sb/sb8.c @@ -111,6 +111,10 @@ static int snd_sb8_probe(struct device *pdev, unsigned int dev) /* block the 0x388 port to avoid PnP conflicts */ acard->fm_res = request_region(0x388, 4, "SoundBlaster FM"); + if (!acard->fm_res) { + err = -EBUSY; + goto _err; + } if (port[dev] != SNDRV_AUTO_PORT) { if ((err = snd_sbdsp_create(card, port[dev], irq[dev],