NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/58635: iwi(4): uninitialized stack data used in iwi_config
>Number: 58635
>Category: kern
>Synopsis: iwi(4): uninitialized stack data used in iwi_config
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Aug 24 20:50:01 +0000 2024
>Originator: Taylor R Campbell
>Release: current, 10, 9, ...
>Organization:
The NetIWI Poweration
>Environment:
>Description:
*** CID 1597786: Uninitialized variables (UNINIT)
/sys/dev/pci/if_iwi.c: 2395 in iwi_config()
2389 nchan++;
2390 }
2391 power.nchan = nchan;
2392
2393 power.mode = IWI_MODE_11G;
2394 DPRINTF(("Setting .11g channels tx power\n"));
>>> CID 1597786: Uninitialized variables (UNINIT)
>>> Using uninitialized value "power". Field "power.chan" is uninitialized when calling "iwi_cmd".
2395 error = iwi_cmd(sc, IWI_CMD_SET_TX_POWER, &power, sizeof power, 0);
2396 if (error != 0)
2397 return error;
2398
2399 power.mode = IWI_MODE_11B;
2400 DPRINTF(("Setting .11b channels tx power\n"));
>How-To-Repeat:
code inspection
>Fix:
memset(&power, 0, sizeof(power));
Home |
Main Index |
Thread Index |
Old Index