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

2015-11-20 Thread David Miller
From: Ondrej Zary 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:

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

2015-11-20 Thread David Miller
From: Ondrej Zary 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

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

2015-11-19 Thread Ondrej Zary
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 --- drivers/net/ethernet/dlink/dl2k.c | 182

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

2015-11-19 Thread Ondrej Zary
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 ---

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

2015-11-18 Thread Ondrej Zary
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 --- drivers/net/ethernet/dlink/dl2k.c | 182

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

2015-11-18 Thread Ondrej Zary
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 ---