Handle EBADF when KFD file handle is still open.
Signed-off-by: Sean Keely <Sean.Keely@amd.com> Change-Id: I23d6c87d5729f57c261030c6baeff4c977eef934
Dieser Commit ist enthalten in:
@@ -18,7 +18,7 @@ int kmtIoctl(int fd, unsigned long request, void *arg)
|
||||
* make any subsequent hsaKmt calls fail in CHECK_KFD_OPEN.
|
||||
*/
|
||||
pr_err("KFD file descriptor not valid in this process\n");
|
||||
hsakmt_forked = true;
|
||||
is_forked_child();
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -196,4 +196,6 @@ void clear_events_page(void);
|
||||
void fmm_clear_all_mem(void);
|
||||
void clear_process_doorbells(void);
|
||||
uint32_t get_num_sysfs_nodes(void);
|
||||
|
||||
bool is_forked_child(void);
|
||||
#endif
|
||||
|
||||
@@ -48,7 +48,7 @@ int zfb_support;
|
||||
* because the process can fork without calling the fork function in
|
||||
* libc (using clone or calling the system call directly).
|
||||
*/
|
||||
static bool is_forked_child(void)
|
||||
bool is_forked_child(void)
|
||||
{
|
||||
pid_t cur_pid;
|
||||
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren