Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refperf: Avoid null pointer dereference when buf fails to allocate
Currently in the unlikely event that buf fails to be allocated it is dereferenced a few times. Use the errexit flag to determine if buf should be written to to avoid the null pointer dereferences. Addresses-Coverity: ("Dereference after null check") Fixes: f518f15 ("refperf: Dynamically allocate experiment-summary output buffer") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
- Loading branch information