Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185099
b: refs/heads/master
c: 2799d5c
h: refs/heads/master
i:
  185097: 929a48d
  185095: b03156b
v: v3
  • Loading branch information
Stefan Richter committed Feb 24, 2010
1 parent 5fe633c commit d7c98bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d54423c62c2f687919d4e5bdd4bb064234ff2d44
refs/heads/master: 2799d5c5f9d2064c6d1f50ec82e28e3eac5f6954
18 changes: 11 additions & 7 deletions trunk/drivers/firewire/core-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,15 +588,19 @@ static int read_bus_info_block(struct fw_device *device, int generation)
if (read_rom(device, generation, i, &rom[i]) != RCODE_COMPLETE)
goto out;
end = i + (rom[i] >> 16) + 1;
i++;
if (end > READ_BIB_ROM_SIZE)
if (end > READ_BIB_ROM_SIZE) {
/*
* This block extends outside standard config
* area (and the array we're reading it
* into). That's broken, so ignore this
* device.
* This block extends outside the config ROM which is
* a firmware bug. Ignore this whole block, i.e.
* simply set a fake block length of 0.
*/
goto out;
fw_error("skipped invalid ROM block %x at %llx\n",
rom[i],
i * 4 | CSR_REGISTER_BASE | CSR_CONFIG_ROM);
rom[i] = 0;
end = i;
}
i++;

/*
* Now read in the block. If this is a directory
Expand Down

0 comments on commit d7c98bf

Please sign in to comment.