]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: handle error when backing RX buffer
authorJulian Wiedmann <jwi@linux.ibm.com>
Tue, 10 Mar 2020 17:38:02 +0000 (18:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:01:54 +0000 (11:01 +0200)
commit021cd755c3dc9436994deb611477f12afb7cc304
treefbc389e08d8bea3878d53b5941c5af81cf7b6f84
parente3f0bbdce6158b0cbc0e89149d1a2123f92e531b
s390/qeth: handle error when backing RX buffer

[ Upstream commit a783780fda140d60481298c1938d6ba65fb67206 ]

qeth_init_qdio_queues() fills the RX ring with an initial set of
RX buffers. If qeth_init_input_buffer() fails to back one of the RX
buffers with memory, we need to bail out and report the error.

Fixes: a5a090d6ef88 ("qeth: new qeth device driver")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/net/qeth_core_main.c