Commit 6664d16
Mika Penttilä
gpu: host1x: Plug potential memory leak
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2154295
Upstream Status: v5.15-rc4
commit c3dbfb9
Author: Thierry Reding <treding@nvidia.com>
AuthorDate: Thu Sep 2 22:33:09 2021 +0200
Commit: Thierry Reding <treding@nvidia.com>
CommitDate: Thu Sep 16 18:06:52 2021 +0200
The memory allocated for a DMA fence could be leaked if the code failed
to allocate the waiter object. Make sure to release the fence allocation
on failure.
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mika Penttilä <mpenttil@redhat.com>1 parent d313c0b commit 6664d16
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
| 156 | + | |
156 | 157 | | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| |||
0 commit comments