diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-07-16 17:38:56 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-08-25 04:45:35 +0300 |
commit | 58db5785b0d76be4582a32a7900acce88e691d36 (patch) | |
tree | d7632ad3bc8c221f86da83ccdd553a304fcad51e /lib/debugobjects.c | |
parent | 57f602022e82ee8fa6476d0e16ddbaf3eb86b245 (diff) | |
download | linux-58db5785b0d76be4582a32a7900acce88e691d36.tar.xz |
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: f518f154ecef ("refperf: Dynamically allocate experiment-summary output buffer")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions