[PATCH v5] gpudev: manage NULL pointer

Thomas Monjalon thomas at monjalon.net
Mon Nov 22 17:01:22 CET 2021


23/11/2021 00:55, eagostini at nvidia.com:
> From: Elena Agostini <eagostini at nvidia.com>
> 
> gpudev free and unregister functions return
> gracefully if input pointer is NULL because
> API doc was indicating NULL as a no-op
> accepted value.
> 
> cuda driver checks are removed because
> redundant with the checks added
> in gpudev library.

You didn't remove the check in cuda_mem_register.





More information about the dev mailing list