From: Leon Romanovsky Date: Thu, 29 Dec 2016 16:37:11 +0000 (+0200) Subject: net/mlx4: Remove BUG_ON from ICM allocation routine X-Git-Tag: v3.2.87~145 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1905ee1495b4f2b1dafe7f302e65ff49f0b47ef;p=pandora-kernel.git net/mlx4: Remove BUG_ON from ICM allocation routine commit c1d5f8ff80ea84768f5fae1ca9d1abfbb5e6bbaa upstream. This patch removes BUG_ON() macro from mlx4_alloc_icm_coherent() by checking DMA address alignment in advance and performing proper folding in case of error. Fixes: 5b0bf5e25efe ("mlx4_core: Support ICM tables in coherent memory") Reported-by: Ozgur Karatas Signed-off-by: Leon Romanovsky Signed-off-by: Tariq Toukan Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed