Commit f162895
authored
rocr-runtime: fix segfault when queue allocation fails (#2850)
* rocm-runtime: fix crash in QueueCreate due to trying to free non allocated scratch
if (scratch.main_queue_base != nullptr) before calling ReleaseQueueMainScratch
because ReleaseQueueMainScratch is only valid if main_queue_base is set
and the scope guard can fire for an error allocating the queue.
* rocm-runtime: log for errors in QueueCreate1 parent 8d84709 commit f162895
1 file changed
Lines changed: 11 additions & 2 deletions
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1798 | 1798 | | |
1799 | 1799 | | |
1800 | 1800 | | |
1801 | | - | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
1802 | 1804 | | |
1803 | 1805 | | |
1804 | 1806 | | |
1805 | 1807 | | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
1806 | 1811 | | |
1807 | 1812 | | |
1808 | 1813 | | |
| |||
1831 | 1836 | | |
1832 | 1837 | | |
1833 | 1838 | | |
1834 | | - | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
1835 | 1844 | | |
1836 | 1845 | | |
1837 | 1846 | | |
| |||
0 commit comments