From: Filipe Manana Date: Fri, 3 Jul 2015 07:36:11 +0000 (+0100) Subject: Btrfs: fix memory leak in the extent_same ioctl X-Git-Tag: omap-for-v4.3/fixes-merge-window~226^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=497b4050e0eacd4c746dd396d14916b1e669849d;p=pandora-kernel.git Btrfs: fix memory leak in the extent_same ioctl We were allocating memory with memdup_user() but we were never releasing that memory. This affected pretty much every call to the ioctl, whether it deduplicated extents or not. This issue was reported on IRC by Julian Taylor and on the mailing list by Marcel Ritter, credit goes to them for finding the issue. Reported-by: Julian Taylor Reported-by: Marcel Ritter Cc: stable@vger.kernel.org Signed-off-by: Filipe Manana Reviewed-by: Mark Fasheh --- Reading git-diff-tree failed