staging: sep: fix possible memory leak in sep_prepare_input_dma_table()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 15 Mar 2013 09:20:08 +0000 (17:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 16:05:36 +0000 (09:05 -0700)
commit13b47d5f79f76293abda13c8b39570659bb9e9ca
tree287030d60dd913db02baea49c405573a27c6c6a1
parente72b7bbd178bf0081b5f62f1daaf86a7daf13f3e
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sep/sep_main.c