projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aed8089
)
firewire: core: remove condition which is always false
author
Stefan Richter
<stefanr@s5r6.in-berlin.de>
Sat, 17 Jan 2009 21:45:54 +0000
(22:45 +0100)
committer
Stefan Richter
<stefanr@s5r6.in-berlin.de>
Tue, 24 Mar 2009 19:56:47 +0000
(20:56 +0100)
reread_bus_info_block() only gets to see devices whose config_rom_length
is at least 6 (ROM header, bus info block, root directory header).
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-device.c
patch
|
blob
|
history
diff --git
a/drivers/firewire/fw-device.c
b/drivers/firewire/fw-device.c
index
7276a0d
..
df789d3
100644
(file)
--- a/
drivers/firewire/fw-device.c
+++ b/
drivers/firewire/fw-device.c
@@
-892,7
+892,7
@@
static int reread_bus_info_block(struct fw_device *device, int generation)
if (i == 0 && q == 0)
return REREAD_BIB_GONE;
- if (
i > device->config_rom_length ||
q != device->config_rom[i])
+ if (q != device->config_rom[i])
return REREAD_BIB_CHANGED;
}