diff options
| author | Haiyue Wang <haiyuewa@163.com> | 2026-01-10 01:54:25 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-01-16 16:43:43 +0100 |
| commit | 054e1c0e6114aaf08672c5ad25d796362bc7e76b (patch) | |
| tree | 3aeaac62e9c519d0589b8b2b401fba7b83e24380 /include/asm-mips/git@git.tavy.me:linux.git | |
| parent | 26c08dabe5475d99a13f353d8dd70e518de45663 (diff) | |
uio: pci_sva: correct '-ENODEV' check logic
The current '-ENODEV' check uses '&&', which can lead to a NULL pointer
dereference when udev is NULL.
Fix the condition to return -ENODEV if either udev or its pdev is NULL.
Fixes: 3397c3cd859a ("uio: Add SVA support for PCI devices via uio_pci_generic_sva.c")
Signed-off-by: Haiyue Wang <haiyuewa@163.com>
Link: https://patch.msgid.link/20260109175448.34309-1-haiyuewa@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/asm-mips/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
