diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/agp/sgi-agp.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/char/agp/sgi-agp.c b/drivers/char/agp/sgi-agp.c index d73be4c2db8a..902648db7efa 100644 --- a/drivers/char/agp/sgi-agp.c +++ b/drivers/char/agp/sgi-agp.c | |||
@@ -281,10 +281,11 @@ static int __devinit agp_sgi_init(void) | |||
281 | else | 281 | else |
282 | return 0; | 282 | return 0; |
283 | 283 | ||
284 | sgi_tioca_agp_bridges = | 284 | sgi_tioca_agp_bridges = kmalloc(tioca_gart_found * |
285 | (struct agp_bridge_data **)kmalloc(tioca_gart_found * | 285 | sizeof(struct agp_bridge_data *), |
286 | sizeof(struct agp_bridge_data *), | 286 | GFP_KERNEL); |
287 | GFP_KERNEL); | 287 | if (!sgi_tioca_agp_bridges) |
288 | return -ENOMEM; | ||
288 | 289 | ||
289 | j = 0; | 290 | j = 0; |
290 | list_for_each_entry(info, &tioca_list, ca_list) { | 291 | list_for_each_entry(info, &tioca_list, ca_list) { |