From: Hannes Reinecke Date: Wed, 6 Feb 2013 13:42:28 +0000 (+0100) Subject: target_core_rd: break out unterminated loop during copy X-Git-Tag: v3.9-rc1~71^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbf344e54ed9a76e344d08feedc70ab2c5a8a64c;p=pandora-kernel.git target_core_rd: break out unterminated loop during copy The loop in rd_execute_rw() will never terminate if the sg element has a zero size. Or it'll spill over into outer space if the sg element is larger than the available space. So we need to add some safety catches here. Cc: Nic Bellinger Signed-off-by: Hannes Reinecke Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed