Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276289
b: refs/heads/master
c: c56935b
h: refs/heads/master
i:
  276287: 67b715b
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Nov 29, 2011
1 parent 0e78511 commit 3d41fbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 4f718a29fe4908c2cea782f751e9805319684e2b
refs/heads/master: c56935bdc0a8edf50237d3b0205133a5b0adc604
3 changes: 2 additions & 1 deletion trunk/drivers/firmware/sigma.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ int process_sigma_firmware(struct i2c_client *client, const char *name)
if (memcmp(ssfw_head->magic, SIGMA_MAGIC, ARRAY_SIZE(ssfw_head->magic)))
goto done;

crc = crc32(0, fw->data, fw->size);
crc = crc32(0, fw->data + sizeof(*ssfw_head),
fw->size - sizeof(*ssfw_head));
pr_debug("%s: crc=%x\n", __func__, crc);
if (crc != ssfw_head->crc)
goto done;
Expand Down

0 comments on commit 3d41fbd

Please sign in to comment.