qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] xio3130_downstream: typo fix


From: Philippe Mathieu-Daudé
Subject: Re: [Qemu-devel] [PATCH] xio3130_downstream: typo fix
Date: Fri, 12 Jul 2019 19:10:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

On 7/11/19 9:25 PM, Michael S. Tsirkin wrote:
> slt ctl/status are passed in incorrect order.
> Fix this up.
> 

Fixes: Coverity (CID 1403007)

> Signed-off-by: Michael S. Tsirkin <address@hidden>
> Reported-by: Peter Maydell <address@hidden>
> ---
>  hw/pci-bridge/xio3130_downstream.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/pci-bridge/xio3130_downstream.c 
> b/hw/pci-bridge/xio3130_downstream.c
> index 899b0fd6c9..182e164f74 100644
> --- a/hw/pci-bridge/xio3130_downstream.c
> +++ b/hw/pci-bridge/xio3130_downstream.c
> @@ -43,7 +43,7 @@ static void xio3130_downstream_write_config(PCIDevice *d, 
> uint32_t address,
>  {
>      uint16_t slt_ctl, slt_sta;
>  
> -    pcie_cap_slot_get(d, &slt_sta, &slt_ctl);
> +    pcie_cap_slot_get(d, &slt_ctl, &slt_sta);
>      pci_bridge_write_config(d, address, val, len);
>      pcie_cap_flr_write_config(d, address, val, len);
>      pcie_cap_slot_write_config(d, slt_ctl, slt_sta, address, val, len);
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]