From: Bartlomiej Zolnierkiewicz Date: Fri, 9 Aug 2013 12:02:08 +0000 (+0200) Subject: stmmac: fix init_dma_desc_rings() to handle errors X-Git-Tag: v3.11-rc6~11^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56329137211639528ddf05c59a9d7cbde6879d1f;p=pandora-kernel.git stmmac: fix init_dma_desc_rings() to handle errors In stmmac_init_rx_buffers(): * add missing handling of dma_map_single() error * remove superfluous unlikely() optimization while at it Add stmmac_free_rx_buffers() helper and use it in dma_free_rx_skbufs(). In init_dma_desc_rings(): * add missing handling of kmalloc_array() errors * fix handling of dma_alloc_coherent() and stmmac_init_rx_buffers() errors * make function return an error value on error and 0 on success In stmmac_open(): * add handling of init_dma_desc_rings() return value Signed-off-by: Bartlomiej Zolnierkiewicz Signed-off-by: Kyungmin Park Signed-off-by: David S. Miller --- Reading git-diff-tree failed