Searched hist:"39536 ff8" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/ethernet/dlink/ |
H A D | dl2k.c | 39536ff8 Thu Nov 19 13:13:04 CST 2015 Ondrej Zary <linux@rainbow-software.org> dl2k: Handle memory allocation errors in alloc_list
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> Signed-off-by: David S. Miller <davem@davemloft.net> 39536ff8 Thu Nov 19 13:13:04 CST 2015 Ondrej Zary <linux@rainbow-software.org> dl2k: Handle memory allocation errors in alloc_list 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> Signed-off-by: David S. Miller <davem@davemloft.net>
|