Page MenuHomeFreeBSD

sfxge(4): fix PreFAST static analysis warning (C6001)
ClosedPublic

Authored by arybchik on Nov 21 2018, 11:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 26, 5:11 PM
Unknown Object (File)
Fri, Jun 26, 5:11 PM
Unknown Object (File)
Thu, Jun 18, 1:18 PM
Unknown Object (File)
Sat, Jun 13, 7:51 PM
Unknown Object (File)
May 30 2026, 9:18 AM
Unknown Object (File)
May 29 2026, 4:16 AM
Unknown Object (File)
May 28 2026, 11:15 AM
Unknown Object (File)
May 19 2026, 8:19 PM
Subscribers

Details

Summary

Fix warning
"C6001: Using uninitialized memory '*sensor_maskp'"
which could occur when the npages argument to efx_mcdi_sensor_info()
is less than or equal to zero.

Submitted by: Andrew Lee <alee at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week

Test Plan

amd64 tinderbox kernel builds tested
driver loaded/unloaded, interfaces up/down, traffic works fine

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20984
Build 20349: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Nov 24 2018, 4:32 PM
This revision was automatically updated to reflect the committed changes.