Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1274385

Re: [PATCH 1/3 v2] dl2k: Handle memory allocation errors in alloc_list

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH 1/3 v2] dl2k: Handle memory allocation errors in alloc_list
Date 2015-11-20 20:50 +0100
Message-ID <qwZQZ-39H-15@gated-at.bofh.it> (permalink)
References <qwCUp-57G-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Ondrej Zary <linux@rainbow-software.org>
Date: Thu, 19 Nov 2015 20:13:04 +0100

> If memory allocation fails in alloc_list(), free the already allocated
> memory and return -ENOMEM. In rio_open(), call alloc_list() first and
> abort if it fails. Move HW access (set RFDListPtr) out ot alloc_list().
> 
> Signed-off-by: Ondrej Zary <linux@rainbow-software.org>

Applied to net-next.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 1/3 v2] dl2k: Handle memory allocation errors in alloc_list Ondrej Zary <linux@rainbow-software.org> - 2015-11-19 20:20 +0100
  [PATCH 2/3] dl2k: Reorder and cleanup initialization Ondrej Zary <linux@rainbow-software.org> - 2015-11-19 20:20 +0100
    Re: [PATCH 2/3] dl2k: Reorder and cleanup initialization David Miller <davem@davemloft.net> - 2015-11-20 20:50 +0100
  Re: [PATCH 1/3 v2] dl2k: Handle memory allocation errors in  alloc_list David Miller <davem@davemloft.net> - 2015-11-20 20:50 +0100

csiph-web