On 11 May 2016 at 23:50, Michael Brown <[email protected]> wrote:
> Conform to the specification for GetStatus(), which states that "if
> there are no transmit buffers to recycle and TxBuf is not NULL, *TxBuf
> will be set to NULL".
>
> Cc: Leif Lindholm <[email protected]>
> Cc: Ard Biesheuvel <[email protected]>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Michael Brown <[email protected]>

Reviewed-by: Ard Biesheuvel <[email protected]>

Pushed as e117c894fdf1

Thanks!


> ---
>  EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c 
> b/EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c
> index 8af23df..aabaf60 100644
> --- a/EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c
> +++ b/EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.c
> @@ -1055,6 +1055,8 @@ SnpGetStatus (
>        LanDriver->Stats.TxTotalFrames += 1;
>        *TxBuff = LanDriver->TxRing[PacketTag % LAN9118_TX_RING_NUM_ENTRIES];
>      }
> +  } else if (TxBuff != NULL) {
> +    *TxBuff = NULL;
>    }
>
>    // Check for a TX Error interrupt
> --
> 2.3.8
>
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to