Commit f0dd6878 authored by Ian Ray's avatar Ian Ray Committed by Dmitry Torokhov

Input: atmel_mxt_ts - fix leak in mxt_update_cfg()

Fix leak (whose magnitude is the configuration file size) when the CRCs
match in mxt_update_cfg().
Signed-off-by: default avatarIan Ray <ian.ray@ge.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent abbe3acd
...@@ -1526,7 +1526,8 @@ static int mxt_update_cfg(struct mxt_data *data, const struct firmware *fw) ...@@ -1526,7 +1526,8 @@ static int mxt_update_cfg(struct mxt_data *data, const struct firmware *fw)
} else if (config_crc == data->config_crc) { } else if (config_crc == data->config_crc) {
dev_dbg(dev, "Config CRC 0x%06X: OK\n", dev_dbg(dev, "Config CRC 0x%06X: OK\n",
data->config_crc); data->config_crc);
return 0; ret = 0;
goto release_raw;
} else { } else {
dev_info(dev, "Config CRC 0x%06X: does not match file 0x%06X\n", dev_info(dev, "Config CRC 0x%06X: does not match file 0x%06X\n",
data->config_crc, config_crc); data->config_crc, config_crc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment