Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254388
b: refs/heads/master
c: 52ae18a
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams committed Jul 3, 2011
1 parent 56efdc0 commit 9d4b083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 4eefd2518aa04e1c69118252dc23e3444e694bc1
refs/heads/master: 52ae18ac80fbdd268720b0daa27ac797a801500c
5 changes: 2 additions & 3 deletions trunk/drivers/scsi/isci/probe_roms.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,8 @@ struct isci_orom *isci_get_efi_var(struct pci_dev *pdev)
return NULL;
}

copy_len = min(evar->DataSize,
min(oem_hdr->len - sizeof(*oem_hdr),
sizeof(*rom)));
copy_len = min_t(u16, evar->DataSize,
min_t(u16, oem_hdr->len - sizeof(*oem_hdr), sizeof(*rom)));

memcpy(rom, (char *)evar->Data + sizeof(*oem_hdr), copy_len);

Expand Down

0 comments on commit 9d4b083

Please sign in to comment.