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)
Sat, Dec 27, 2:37 PM
Unknown Object (File)
Dec 15 2025, 9:21 PM
Unknown Object (File)
Nov 21 2025, 9:24 AM
Unknown Object (File)
Nov 21 2025, 8:44 AM
Unknown Object (File)
Nov 20 2025, 9:29 PM
Unknown Object (File)
Nov 20 2025, 9:27 PM
Unknown Object (File)
Nov 20 2025, 9:26 PM
Unknown Object (File)
Nov 20 2025, 9:15 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.