commit | 8c3d3cdbd5dde9bc87d556d2daa9d771ac5254dc | [log] [tgz] |
---|---|---|
author | Wenwen Wang <wenwen@cs.uga.edu> | Sat Aug 17 03:42:24 2019 -0300 |
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | Wed Aug 21 18:39:54 2019 -0300 |
tree | 12bbc92d50982d651fee2d8cbb3329f82b4d5a56 | |
parent | 9fc3ce31f5bde660197f35135e90a1cced58aa2c [diff] |
media: dvb-frontends: fix memory leaks In dib7000pc_detection(), 'tx' and 'rx' are allocated through kzalloc() respectively. However, if DiB7000PC is detected, they are not deallocated, leading to memory leaks. To fix this issue, create a label to free 'tx' and 'rx' before returning from the function. Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>