diff options
| author | Alex Williamson <[email protected]> | 2025-02-18 22:22:01 +0000 |
|---|---|---|
| committer | Alex Williamson <[email protected]> | 2025-02-27 18:55:39 +0000 |
| commit | afe84f3b7a26037b258be0f0a1e1754fc1db37e8 (patch) | |
| tree | 03e43faf54e7234661450d24ee132b9af627dc7e /lib/crypto/mpi/mpi-add.c | |
| parent | vfio/pci: match IGD devices in display controller class (diff) | |
| download | kernel-afe84f3b7a26037b258be0f0a1e1754fc1db37e8.tar.gz kernel-afe84f3b7a26037b258be0f0a1e1754fc1db37e8.zip | |
vfio/type1: Catch zero from pin_user_pages_remote()
pin_user_pages_remote() can currently return zero for invalid args
or zero nr_pages, neither of which should ever happen. However
vaddr_get_pfns() indicates it should only ever return a positive
value or -errno and there's a theoretical case where this can slip
through and be unhandled by callers. Therefore convert zero to
-EFAULT.
Reviewed-by: Peter Xu <[email protected]>
Reviewed-by: Mitchell Augustin <[email protected]>
Tested-by: Mitchell Augustin <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions
