From: Matan Barak Date: Thu, 11 Sep 2014 10:18:37 +0000 (+0300) Subject: mlx4: Correct error flows in rereg_mr X-Git-Tag: fixes-for-v3.18-merge-window~78^2^4~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ff0acca7344c93fd9ed778b4c3ce16d95c594e4;p=pandora-kernel.git mlx4: Correct error flows in rereg_mr This patch addresses feedback from Sagi Grimberg on the rereg_mr implementation of mlx4. The following are fixed: 1. Set the correct pd_flags 2. Make sure we change the iova and size MR fields only after successful write and allocation of the MTTs. 3. Make the error checking more robust Fixes: e630664c8383 ("mlx4_core: Add helper functions to support MR re-registration") Signed-off-by: Matan Barak Signed-off-by: Or Gerlitz Signed-off-by: Roland Dreier --- Reading git-diff-tree failed