Commit e785611
authored
Fix SIGTERM segfault when rshim exits (#295)
When SIGTERM is sent to rshim process, a segfault could occur if
rshim_backend_name is NULL. This happens when no specific backend is
specified via command line (-b flag), which is the common auto-detect
mode.
This fix checks the actual backend types of registered devices instead
of rshim_backend_name.
Fixes: 6e4ed82 ("Deregister driver (vfio or uio) when not in use")
RM #46547561 parent 3b3b004 commit e785611
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3059 | 3059 | | |
3060 | 3060 | | |
3061 | 3061 | | |
3062 | | - | |
3063 | | - | |
3064 | | - | |
| 3062 | + | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
3065 | 3068 | | |
3066 | 3069 | | |
3067 | 3070 | | |
| |||
0 commit comments