]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0824b4f16db4bbf45b12f615cb90165d14f1af5a
tree287030d60dd913db02baea49c405573a27c6c6a1
parent6055611768f7a3a55b7740f5d83e2bb40278181e
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