diff options
author | Chen Zhongjin <[email protected]> | 2022-12-05 16:48:05 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-12-05 13:31:45 +0100 |
commit | 7bef797d707f1744f71156b21d41e3b8c946631f (patch) | |
tree | e7fb6bfb686d1c0e5c36c537cef323d15bf77813 /drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c | |
parent | bf44039f1ee828c47e1eb83eb315f0fed5a66126 (diff) |
vme: Fix error not catched in fake_init()
In fake_init(), __root_device_register() is possible to fail but it's
ignored, which can cause unregistering vme_root fail when exit.
general protection fault,
probably for non-canonical address 0xdffffc000000008c
KASAN: null-ptr-deref in range [0x0000000000000460-0x0000000000000467]
RIP: 0010:root_device_unregister+0x26/0x60
Call Trace:
<TASK>
__x64_sys_delete_module+0x34f/0x540
do_syscall_64+0x38/0x90
entry_SYSCALL_64_after_hwframe+0x63/0xcd
Return error when __root_device_register() fails.
Fixes: 658bcdae9c67 ("vme: Adding Fake VME driver")
Signed-off-by: Chen Zhongjin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_preempt_mgr.c')
0 files changed, 0 insertions, 0 deletions