Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362019
b: refs/heads/master
c: 715230a
h: refs/heads/master
i:
  362017: ebc02c0
  362015: 6518d35
v: v3
  • Loading branch information
Kees Cook authored and David S. Miller committed Mar 27, 2013
1 parent f5cd742 commit 8dab0ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: ea872d7712528ad991bdabb63515bc00ee10993e
refs/heads/master: 715230a44310a8cf66fbfb5a46f9a62a9b2de424
7 changes: 5 additions & 2 deletions trunk/drivers/net/ethernet/broadcom/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -14604,8 +14604,11 @@ static void tg3_read_vpd(struct tg3 *tp)
if (j + len > block_end)
goto partno;

memcpy(tp->fw_ver, &vpd_data[j], len);
strncat(tp->fw_ver, " bc ", vpdlen - len - 1);
if (len >= sizeof(tp->fw_ver))
len = sizeof(tp->fw_ver) - 1;
memset(tp->fw_ver, 0, sizeof(tp->fw_ver));
snprintf(tp->fw_ver, sizeof(tp->fw_ver), "%.*s bc ", len,
&vpd_data[j]);
}

partno:
Expand Down

0 comments on commit 8dab0ef

Please sign in to comment.