|
|
@@ -114,6 +114,10 @@ static int ipwireless_probe(struct pcmcia_device *p_dev, void *priv_data)
|
|
|
|
|
|
ipw->common_memory = ioremap(p_dev->resource[2]->start,
|
|
|
resource_size(p_dev->resource[2]));
|
|
|
+ if (!ipw->common_memory) {
|
|
|
+ ret = -ENOMEM;
|
|
|
+ goto exit1;
|
|
|
+ }
|
|
|
if (!request_mem_region(p_dev->resource[2]->start,
|
|
|
resource_size(p_dev->resource[2]),
|
|
|
IPWIRELESS_PCCARD_NAME)) {
|
|
|
@@ -134,6 +138,10 @@ static int ipwireless_probe(struct pcmcia_device *p_dev, void *priv_data)
|
|
|
|
|
|
ipw->attr_memory = ioremap(p_dev->resource[3]->start,
|
|
|
resource_size(p_dev->resource[3]));
|
|
|
+ if (!ipw->attr_memory) {
|
|
|
+ ret = -ENOMEM;
|
|
|
+ goto exit3;
|
|
|
+ }
|
|
|
if (!request_mem_region(p_dev->resource[3]->start,
|
|
|
resource_size(p_dev->resource[3]),
|
|
|
IPWIRELESS_PCCARD_NAME)) {
|