[PATCH v7] gpudev: manage NULL pointer
    Thomas Monjalon 
    thomas at monjalon.net
       
    Wed Nov 24 09:40:18 CET 2021
    
    
  
23/11/2021 01:42, 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.
> 
> Fixes: e818c4e2bf50 ("gpudev: add memory API")
> 
> Signed-off-by: Elena Agostini <eagostini at nvidia.com>
Applied with updated commit message:
    gpudev: manage null parameters in memory functions
    
    The gpudev functions free, register and unregister
    return gracefully if input pointer is NULL or size 0,
    as API doc was indicating no-op accepted values.
    
    CUDA driver checks are removed because redundant
    with the checks added in gpudev library.
    
    
More information about the dev
mailing list