diff options
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/sigma.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/firmware/sigma.c b/drivers/firmware/sigma.c index c780baa59ed9..36265de0a9e8 100644 --- a/drivers/firmware/sigma.c +++ b/drivers/firmware/sigma.c | |||
@@ -130,7 +130,8 @@ int process_sigma_firmware(struct i2c_client *client, const char *name) | |||
130 | if (memcmp(ssfw_head->magic, SIGMA_MAGIC, ARRAY_SIZE(ssfw_head->magic))) | 130 | if (memcmp(ssfw_head->magic, SIGMA_MAGIC, ARRAY_SIZE(ssfw_head->magic))) |
131 | goto done; | 131 | goto done; |
132 | 132 | ||
133 | crc = crc32(0, fw->data, fw->size); | 133 | crc = crc32(0, fw->data + sizeof(*ssfw_head), |
134 | fw->size - sizeof(*ssfw_head)); | ||
134 | pr_debug("%s: crc=%x\n", __func__, crc); | 135 | pr_debug("%s: crc=%x\n", __func__, crc); |
135 | if (crc != ssfw_head->crc) | 136 | if (crc != ssfw_head->crc) |
136 | goto done; | 137 | goto done; |