From: Joe Perches Date: Mon, 8 Dec 2014 04:28:39 +0000 (+0000) Subject: i40e: Fix possible memory leak in i40e_dbg_dump_desc X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~321^2~17^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3fe44c75913076b06ca0d0b79c21ce326ce3ef8;p=pandora-kernel.git i40e: Fix possible memory leak in i40e_dbg_dump_desc I didn't notice that return in the code, fix it by adding a goto out instead to free the memory. Fixes: > New smatch warnings: > drivers/net/ethernet/intel/i40e/i40e_debugfs.c:832 i40e_dbg_dump_desc() warn: possible memory leak of 'ring' Reported-by: Dan Carpenter Signed-off-by: Joe Perches Tested-by: Jim Young Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed