aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2020-07-16 14:38:56 +0000
committerPaul E. McKenney <[email protected]>2020-08-25 01:45:35 +0000
commit58db5785b0d76be4582a32a7900acce88e691d36 (patch)
treed7632ad3bc8c221f86da83ccdd553a304fcad51e /net/unix/af_unix.c
parentrcutorture: Properly synchronize with OOM notifier (diff)
downloadkernel-58db5785b0d76be4582a32a7900acce88e691d36.tar.gz
kernel-58db5785b0d76be4582a32a7900acce88e691d36.zip
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 <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions