SWDEV-305946:add null pointer check
Signed-off-by: sdashmiz <shadi.dashmiz@amd.com> Change-Id: I4e466dfd15123276537c47548fbdfb37c5c230df
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
Payam Ghafari
γονέας
1da4bb21b9
υποβολή
848c47c95f
@@ -371,6 +371,9 @@ hipError_t hipStreamEndCapture(hipStream_t stream, hipGraph_t* pGraph) {
|
||||
|
||||
hipError_t hipGraphCreate(hipGraph_t* pGraph, unsigned int flags) {
|
||||
HIP_INIT_API(hipGraphCreate, pGraph, flags);
|
||||
if ((pGraph == nullptr) || (flags != 0)) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
*pGraph = new ihipGraph();
|
||||
HIP_RETURN(hipSuccess);
|
||||
}
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user