HomeFreeBSD

ixgbe(4): Eliminate bogus sizeof() expressions

Description

ixgbe(4): Eliminate bogus sizeof() expressions

All of these uses of sizeof() were on the wrong type in relation to the pointer
passed to SYSCTL_ADD_PROC as arg1. Fortunately, none of the handlers actually
use arg2. So just don't pass a (non-zero) arg2.

Reported by: Coverity
CID: 1007701

(cherry picked from commit d09fbcd0b6eae765a190eaa4dc931050af7bd25f)

Details

Provenance
cemAuthored on Jan 29 2020, 5:31 AM
Kevin Bowling <kbowling@FreeBSD.org>Committed on Oct 3 2021, 1:54 AM
Parents
rGcfb3a1dee11c: ixgbe(4): Fix enabling/disabling and reconfiguration of queues
Branches
Unknown
Tags
Unknown

Event Timeline