commit | a84e355ecd3ed9759d7aaa40170aab78e2a68a06 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Sat Jun 08 07:27:25 2019 -0400 |
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | Fri Jun 21 16:19:54 2019 -0400 |
tree | 6d7203447703da5dd208d3a34864775b7fe0c077 | |
parent | 94b5bf3ac9c4b34a2b1516772c63fb94da6ad5d3 [diff] |
media: staging: davinci: fix memory leaks and check for allocation failure There are three error return paths that don't kfree params causing a memory leak. Fix this by adding an error return path that kfree's params before returning. Also add a check to see params failed to be allocated. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>