aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-05-14 15:49:30 +0100
committerZack Rusin <[email protected]>2021-05-14 14:38:02 -0400
commit2f70cbf79e3ffa65ab2faeec9ba7e6e587e6cad9 (patch)
treee7d0f18a256432c5c3dc8fce73e98bc4fb554ab3 /tools/perf/scripts/python/exported-sql-viewer.py
parent1275e41753683f992177d74f450437f1a3be33c0 (diff)
drm/vmwgfx: Fix memory allocation check and a leak of object fifo
The allocation of fifo is lacking an allocation failure check, so fix this by adding one. In the case where fifo->static_buffer fails to be allocated the error return path neglects to kfree the fifo object. Fix this by adding in the missing kfree. Kudos to Dan Carpenter for spotting the missing kzalloc failure check. Addresses-Coverity: ("Resource leak") Fixes: 2cd80dbd3551 ("drm/vmwgfx: Add basic support for SVGA3") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Zack Rusin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions