diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-06-08 07:27:25 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-06-21 16:19:54 -0400 |
commit | a84e355ecd3ed9759d7aaa40170aab78e2a68a06 (patch) | |
tree | 6d7203447703da5dd208d3a34864775b7fe0c077 /include/media/videobuf2-core.h | |
parent | 94b5bf3ac9c4b34a2b1516772c63fb94da6ad5d3 (diff) | |
download | linux-a84e355ecd3ed9759d7aaa40170aab78e2a68a06.tar.bz2 |
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>
Diffstat (limited to 'include/media/videobuf2-core.h')
0 files changed, 0 insertions, 0 deletions