Skip to content

Commit f0dd687

Browse files
Ian Raydtor
authored andcommitted
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: Ian Ray <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent abbe3ac commit f0dd687

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/input/touchscreen/atmel_mxt_ts.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,8 @@ static int mxt_update_cfg(struct mxt_data *data, const struct firmware *fw)
15261526
} else if (config_crc == data->config_crc) {
15271527
dev_dbg(dev, "Config CRC 0x%06X: OK\n",
15281528
data->config_crc);
1529-
return 0;
1529+
ret = 0;
1530+
goto release_raw;
15301531
} else {
15311532
dev_info(dev, "Config CRC 0x%06X: does not match file 0x%06X\n",
15321533
data->config_crc, config_crc);

0 commit comments

Comments
 (0)