Page MenuHomeFreeBSD

bhyve: avoid uninitialized variable
ClosedPublic

Authored by corvink on Mar 28 2022, 9:03 AM.
Tags
Referenced Files
Unknown Object (File)
Wed, Nov 27, 1:48 PM
Unknown Object (File)
Wed, Nov 27, 1:48 PM
Unknown Object (File)
Wed, Nov 27, 1:48 PM
Unknown Object (File)
Wed, Nov 27, 1:47 PM
Unknown Object (File)
Wed, Nov 27, 1:25 PM
Unknown Object (File)
Wed, Nov 6, 8:12 PM
Unknown Object (File)
Oct 9 2024, 3:37 AM
Unknown Object (File)
Oct 9 2024, 3:04 AM

Details

Summary

It was introduced by D33129.

Signed-off-by: Corvin Köhne <c.koehne@beckhoff.com>
Reported-by: Andy Fiddaman <andy@omniosce.org>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 28 2022, 1:40 PM
rew added inline comments.
usr.sbin/bhyve/pci_emul.c
830

would it make sense to assign addr = 0 when baseptr is NULL? instead of handling it in the case blocks

  • don't set addr = 0 in case block
This revision now requires review to proceed.Apr 1 2022, 5:14 AM
corvink added inline comments.
usr.sbin/bhyve/pci_emul.c
830

Good idea, I've changed it.

This revision was not accepted when it landed; it landed in state Needs Review.Apr 1 2022, 9:20 AM
Closed by commit rG8ac8adda8dba: bhyve: avoid uninitialized variable (authored by corvink, committed by manu). · Explain Why
This revision was automatically updated to reflect the committed changes.