Page MenuHomeFreeBSD

axgbe: Don't dereference NULL pointers
ClosedPublic

Authored by imp on May 21 2021, 4:51 AM.
Tags
None
Referenced Files
F151674016: D30373.id90371.diff
Thu, Apr 9, 10:42 PM
Unknown Object (File)
Thu, Apr 9, 9:11 AM
Unknown Object (File)
Thu, Apr 9, 7:22 AM
Unknown Object (File)
Thu, Apr 9, 12:10 AM
Unknown Object (File)
Sat, Mar 28, 8:10 PM
Unknown Object (File)
Sat, Mar 28, 6:34 AM
Unknown Object (File)
Fri, Mar 27, 10:59 PM
Unknown Object (File)
Sun, Mar 22, 4:17 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39332
Build 36221: arc lint + arc unit

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.