]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set error value when allocation of IO irq fails in ENA
authormw <mw@FreeBSD.org>
Thu, 30 May 2019 13:20:42 +0000 (13:20 +0000)
committermw <mw@FreeBSD.org>
Thu, 30 May 2019 13:20:42 +0000 (13:20 +0000)
commitf94e60076ddb04a0d2591764fdb1e81312bd868a
treedcbf279acec94a16bef4d7818b496403dcfac3ae
parent7090f945440c2d2e77723153403bfd2ef2fae463
Set error value when allocation of IO irq fails in ENA

bus_alloc_resource_any() is not returning error value in case of an
error.
If the function call fails, the error value was not passed to the
ena_up() function.

Submitted by:  Michal Krawczyk <mk@semihalf.com>
Obtained from: Semihalf
Sponsored by:  Amazon, Inc.
sys/dev/ena/ena.c