From: Sagi Grimberg Date: Thu, 4 Jun 2015 16:49:19 +0000 (+0300) Subject: iser-target: Fix variable-length response error completion X-Git-Tag: omap-for-v4.3/legacy-v2-signed~215^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9253e667ab50fd4611a60e1cdd6a6e05a1d91cf1;p=pandora-kernel.git iser-target: Fix variable-length response error completion Since commit "2426bd456a6 target: Report correct response ..." we might get a command with data_size that does not fit to the number of allocated data sg elements. Given that we rely on cmd t_data_nents which might be different than the data_size, we sometimes receive local length error completion. The correct approach would be to take the command data_size into account when constructing the ib sg_list. Signed-off-by: Sagi Grimberg Signed-off-by: Jenny Falkovich Cc: stable@vger.kernel.org # 3.16+ Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed