Skip to content

Commit 146a209

Browse files
author
Dave Jones
committed
[AGPGART] Fix up sgi-agp bug with no devices on bus.
Signed-off-by: Eric Kunze <[email protected]> Signed-off-by: Dave Jones <[email protected]>
1 parent c4dd458 commit 146a209

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/char/agp/sgi-agp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ static int __devinit agp_sgi_init(void)
288288
j = 0;
289289
list_for_each_entry(info, &tioca_list, ca_list) {
290290
struct list_head *tmp;
291+
if (list_empty(info->ca_devices))
292+
continue;
291293
list_for_each(tmp, info->ca_devices) {
292294
u8 cap_ptr;
293295
pdev = pci_dev_b(tmp);

0 commit comments

Comments
 (0)