aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2021-07-13 11:24:10 +0200
committerMauro Carvalho Chehab <[email protected]>2021-07-22 14:01:55 +0200
commite58430e1d4fd01b74475d2fbe2e25b5817b729a9 (patch)
tree0214fecec9fd14ee0052cfa5b4304a3d36b75a42 /tools/perf/scripts/python/bin
parent055d2db28ec2fa3ab5c527c5604f1b32b89fa13a (diff)
media: rockchip/rga: fix error handling in probe
There are a few bugs in this code. 1) No checks for whether dma_alloc_attrs() or __get_free_pages() failed. 2) If video_register_device() fails it doesn't clean up the dma attrs or the free pages. 3) The video_device_release() function frees "vfd" which leads to a use after free on the next line. The call to video_unregister_device() is not required so I have just removed that. Fixes: f7e7b48e6d79 ("[media] rockchip/rga: v4l2 m2m support") Reported-by: Dongliang Mu <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions