Page MenuHomeFreeBSD

axgbe: Don't dereference NULL pointers
ClosedPublic

Authored by imp on May 21 2021, 4:51 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 11 2024, 7:48 AM
Unknown Object (File)
Nov 7 2024, 8:01 PM
Unknown Object (File)
Oct 16 2024, 3:04 PM
Unknown Object (File)
Oct 8 2024, 6:44 AM
Unknown Object (File)
Oct 5 2024, 3:59 AM
Unknown Object (File)
Oct 5 2024, 12:48 AM
Unknown Object (File)
Oct 2 2024, 10:16 AM
Unknown Object (File)
Sep 29 2024, 8:33 PM
Subscribers

Details

Summary

if (sb == NULL) { ... sb->s_error } is going to be a bad time. Return
ENOMEM when we cannot allocate an sbuf for the sysctl rather than
dereferencing the NULL pointer just returned.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.May 21 2021, 4:51 AM
imp created this revision.
This revision is now accepted and ready to land.May 21 2021, 4:09 PM
allanjude added a subscriber: allanjude.

Reviewed By: allanjude

This revision was automatically updated to reflect the committed changes.