]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - drivers/char/agp/sgi-agp.c
Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart
[linux-3.10.git] / drivers / char / agp / sgi-agp.c
index 7957fc91f6ada9faad5df39d4381e52e90267ce4..4df7734b51c2b37824715038e5e0f9eb1c38fa00 100644 (file)
@@ -289,6 +289,8 @@ static int __devinit agp_sgi_init(void)
        j = 0;
        list_for_each_entry(info, &tioca_list, ca_list) {
                struct list_head *tmp;
+               if (list_empty(info->ca_devices))
+                       continue;
                list_for_each(tmp, info->ca_devices) {
                        u8 cap_ptr;
                        pdev = pci_dev_b(tmp);