diff options
author | Wei Yongjun <[email protected]> | 2019-10-28 09:06:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-11-04 15:01:24 +0100 |
commit | 1fa1b6ca0fda97cbfccdc6b80b1a6b2920751665 (patch) | |
tree | efc4f9eda54c0d063e4fedd6e0a07225334f2554 /lib/memory-notifier-error-inject.c | |
parent | 8e3ef7b444aec3d1059085ce41edaa76ee7340e7 (diff) |
intel_th: msu: Fix possible memory leak in mode_store()
'mode' is malloced in mode_store() and should be freed before leaving
from the error handling cases, otherwise it will cause memory leak.
Fixes: 615c164da0eb ("intel_th: msu: Introduce buffer interface")
Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Alexander Shishkin <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]/
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions