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
F166015191: D18128.diff
Tue, Aug 11, 1:34 AM
Unknown Object (File)
Sat, Aug 8, 6:30 AM
Unknown Object (File)
Fri, Aug 7, 4:39 AM
Unknown Object (File)
Mon, Aug 3, 5:59 PM
Unknown Object (File)
Sun, Aug 2, 6:02 PM
Unknown Object (File)
Jul 5 2026, 12:35 AM
Unknown Object (File)
Jun 26 2026, 5:11 PM
Unknown Object (File)
Jun 26 2026, 5:11 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.