Page MenuHomeFreeBSD

axgbe: Don't dereference NULL pointers
ClosedPublic

Authored by imp on May 21 2021, 4:51 AM.
Tags
None
Referenced Files
F137592141: D30373.id89568.diff
Mon, Nov 24, 12:14 PM
F137592140: D30373.id.diff
Mon, Nov 24, 12:14 PM
F137592138: D30373.id90371.diff
Mon, Nov 24, 12:14 PM
F137592057: D30373.diff
Mon, Nov 24, 12:13 PM
F137554809: D30373.diff
Mon, Nov 24, 7:22 AM
Unknown Object (File)
Wed, Nov 12, 11:27 AM
Unknown Object (File)
Mon, Nov 10, 12:01 AM
Unknown Object (File)
Thu, Nov 6, 5:43 AM
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.