Re: iwm(4): Improve iwm_rx_addbuf() error handling.

2016-10-08 Thread Mark Kettenis
> Date: Thu, 6 Oct 2016 12:56:37 +0200 > From: Stefan Sperling > > On Thu, Oct 06, 2016 at 10:49:21AM +0200, Imre Vadasz wrote: > > Hi, > > This patch improves the error handling iwm_rx_addbuf(), specifically in > > out-of-memory and mbuf exhaustion cases. > > > > Keep an

Re: iwm(4): Improve iwm_rx_addbuf() error handling.

2016-10-06 Thread Stefan Sperling
On Thu, Oct 06, 2016 at 10:49:21AM +0200, Imre Vadasz wrote: > Hi, > This patch improves the error handling iwm_rx_addbuf(), specifically in > out-of-memory and mbuf exhaustion cases. > > Keep an additional/spare bus_dmamap_t object around to make error handling > for bus_dmamap_load_mbuf()

iwm(4): Improve iwm_rx_addbuf() error handling.

2016-10-06 Thread Imre Vadasz
Hi, This patch improves the error handling iwm_rx_addbuf(), specifically in out-of-memory and mbuf exhaustion cases. Keep an additional/spare bus_dmamap_t object around to make error handling for bus_dmamap_load_mbuf() failures easier in iwm_rx_addbuf(). This seems like an easy way to avoid