Re: [PATCH] qlcnic: Fix a memory leak in error handling path

2017-02-20 Thread David Miller
From: Christophe JAILLET Date: Sun, 19 Feb 2017 10:35:05 +0100 > If 'dma_alloc_coherent()' fails, we should release resources allocated so > far, just as done in all other cases in this function. > > Signed-off-by: Christophe JAILLET Applied.

[PATCH] qlcnic: Fix a memory leak in error handling path

2017-02-19 Thread Christophe JAILLET
If 'dma_alloc_coherent()' fails, we should release resources allocated so far, just as done in all other cases in this function. Signed-off-by: Christophe JAILLET --- checkpatch.pl complains about '== NULL'. I have left it as-is because both '== NULL' and '!' are already used in the file. --- dr