diff options
| author | Christophe JAILLET <[email protected]> | 2017-08-20 12:49:01 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2019-05-29 16:55:36 -0400 |
| commit | 3b6471c7becd06325eb5e701cc2602b2edbbc7b6 (patch) | |
| tree | 30578f45558a9a83f4047f78840ecfe81fa7e9a8 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 05a7c22c2f681bf7458bec21eb76e91e6b8713ca (diff) | |
media: Staging: media: Release the correct resource in an error handling path
'res' is reassigned several times in the function and if we 'goto
error_unmap', its value is not the returned value of 'request_mem_region()'
anymore.
Introduce a new 'struct resource *' variable (i.e. res2) to keep a pointer
to the right resource, if needed in the error handling path.
Fixes: 4b4eda001704 ("Staging: media: Unmap and release region obtained by ioremap_nocache")
Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions