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)
Nov 17 2024, 1:53 AM
Unknown Object (File)
Nov 16 2024, 2:15 AM
Unknown Object (File)
Oct 2 2024, 5:12 PM
Unknown Object (File)
Oct 1 2024, 2:08 PM
Unknown Object (File)
Sep 30 2024, 8:18 PM
Unknown Object (File)
Sep 17 2024, 4:16 PM
Unknown Object (File)
Sep 7 2024, 7:12 AM
Unknown Object (File)
Jul 3 2024, 12:20 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.