]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
platform/chrome: cros_ec: Fix leak in sequence_store()
authorChristian Engelmayer <cengelma@gmx.at>
Sat, 18 Jul 2015 17:30:33 +0000 (19:30 +0200)
committerOlof Johansson <olof@lixom.net>
Wed, 7 Oct 2015 21:34:26 +0000 (14:34 -0700)
commit88dfb8b43d557ee9b1c1ffd2c8d275dd479a66d4
tree28b6c0730aaf7861ef271c4e6fd1402c48e0c999
parent23ecee32b91cf732226bd7a3ee9fa7a9127645ab
platform/chrome: cros_ec: Fix leak in sequence_store()

The allocated cros_ec_command message structure is not freed in function
sequence_store(). Make sure that 'msg' is freed in all exit paths.
Detected by Coverity CID 1309667.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/platform/chrome/cros_ec_lightbar.c