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)
May 19 2024, 7:38 AM
Unknown Object (File)
May 16 2024, 9:59 PM
Unknown Object (File)
Mar 19 2024, 11:32 PM
Unknown Object (File)
Mar 19 2024, 7:52 PM
Unknown Object (File)
Feb 29 2024, 10:15 AM
Unknown Object (File)
Jan 28 2024, 6:32 PM
Unknown Object (File)
Jan 11 2024, 9:57 PM
Unknown Object (File)
Jan 1 2024, 9:03 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.