Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13b47d5f authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman
Browse files

staging: sep: fix possible memory leak in sep_prepare_input_dma_table()



'lli_array_ptr' etc. are malloced in sep_prepare_input_dma_table() and should
be freed before leaving from the error handling case, otherwise it will cause
memory leak.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e72b7bbd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1986,7 +1986,7 @@ static int sep_prepare_input_dma_table(struct sep_device *sep,
					dma_ctx,
					sep_lli_entries);
		if (error)
			return error;
			goto end_function_error;
		lli_table_alloc_addr = *dmatables_region;
	}