diff options
Diffstat (limited to 'drivers/message/i2o/pci.c')
-rw-r--r-- | drivers/message/i2o/pci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/message/i2o/pci.c b/drivers/message/i2o/pci.c index 442e34506b90..9971430e5184 100644 --- a/drivers/message/i2o/pci.c +++ b/drivers/message/i2o/pci.c | |||
@@ -179,7 +179,10 @@ static int __devinit i2o_pci_alloc(struct i2o_controller *c) | |||
179 | return -ENOMEM; | 179 | return -ENOMEM; |
180 | } | 180 | } |
181 | 181 | ||
182 | if (i2o_dma_alloc(dev, &c->out_queue, MSG_POOL_SIZE, GFP_KERNEL)) { | 182 | if (i2o_dma_alloc |
183 | (dev, &c->out_queue, | ||
184 | I2O_MAX_OUTBOUND_MSG_FRAMES * I2O_OUTBOUND_MSG_FRAME_SIZE * | ||
185 | sizeof(u32), GFP_KERNEL)) { | ||
183 | i2o_pci_free(c); | 186 | i2o_pci_free(c); |
184 | return -ENOMEM; | 187 | return -ENOMEM; |
185 | } | 188 | } |