From: NeilBrown Date: Mon, 18 Aug 2014 03:56:38 +0000 (+1000) Subject: md/raid10: fix memory leak when reshaping a RAID10. X-Git-Tag: omap-for-v3.17/fixes-against-rc2~39^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce0b0a46955d1bb389684a2605dbcaa990ba0154;p=pandora-kernel.git md/raid10: fix memory leak when reshaping a RAID10. raid10 reshape clears unwanted bits from a bio->bi_flags using a method which, while clumsy, worked until 3.10 when BIO_OWNS_VEC was added. Since then it clears that bit but shouldn't. This results in a memory leak. So change to used the approved method of clearing unwanted bits. As this causes a memory leak which can consume all of memory the fix is suitable for -stable. Fixes: a38352e0ac02dbbd4fa464dc22d1352b5fbd06fd Cc: stable@vger.kernel.org (v3.10+) Reported-by: mdraid.pkoch@dfgh.net (Peter Koch) Signed-off-by: NeilBrown --- Reading git-diff-tree failed