Skip to content
Commit 1e3c336a authored by Sanjeev Chugh's avatar Sanjeev Chugh Committed by Dmitry Torokhov
Browse files

Input: atmel_mxt_ts - don't try to free unallocated kernel memory



If the user attempts to update Atmel device with an invalid configuration
cfg file, error handling code is trying to free cfg file memory which is
not allocated yet hence results into kernel crash.

This patch fixes the order of memory free operations.

Signed-off-by: default avatarSanjeev Chugh <sanjeev_chugh@mentor.com>
Fixes: a4891f10

 ("Input: atmel_mxt_ts - zero terminate config firmware file")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent d52266fc
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