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, May 16, 4:14 AM
Unknown Object (File)
Sat, May 9, 7:19 PM
Unknown Object (File)
Sat, May 9, 7:13 PM
Unknown Object (File)
Thu, May 7, 6:29 PM
Unknown Object (File)
Wed, May 6, 11:16 AM
Unknown Object (File)
Tue, Apr 28, 11:40 PM
Unknown Object (File)
Tue, Apr 28, 4:03 PM
Unknown Object (File)
Tue, Apr 28, 4:00 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.