projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4dd458
)
[AGPGART] Fix up sgi-agp bug with no devices on bus.
author
Dave Jones
<davej@redhat.com>
Fri, 4 Nov 2005 23:32:08 +0000
(15:32 -0800)
committer
Dave Jones
<davej@redhat.com>
Fri, 4 Nov 2005 23:32:08 +0000
(15:32 -0800)
Signed-off-by: Eric Kunze <ekunze@sgi.com>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/char/agp/sgi-agp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/agp/sgi-agp.c
b/drivers/char/agp/sgi-agp.c
index d3aa159c9decbfa0ba99e6b42db5aa7f22ac6859..53eeb293d174006016e695389c5fd714c8f44361 100644
(file)
--- a/
drivers/char/agp/sgi-agp.c
+++ b/
drivers/char/agp/sgi-agp.c
@@
-288,6
+288,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);