From: Govindarajulu Varadarajan <_govind@gmx.com> Date: Fri, 2 Jan 2015 15:23:27 +0000 (+0530) Subject: enic: free all rq buffs when allocation fails X-Git-Tag: fixes-v4.0-rc1~337^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dac6232e2ee2bc85dc71f464f19f047afc9422c;p=pandora-kernel.git enic: free all rq buffs when allocation fails When allocation of all RQs fail, we do not free previously allocated buffers, before returning error. This causes memory leak. This patch fixes this by calling vnic_rq_clean(), which frees all the rq buffers. Signed-off-by: Govindarajulu Varadarajan <_govind@gmx.com> Signed-off-by: David S. Miller --- Reading git-diff-tree failed