Thread (30 messages) 30 messages, 8 authors, 2021-12-09

Re: [PATCH v7] gpudev: manage NULL pointer

From: Thomas Monjalon <hidden>
Date: 2021-11-24 08:40:23

23/11/2021 01:42, eagostini@nvidia.com:
From: Elena Agostini <redacted>

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 <redacted>
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.


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help