From: Nicholas Bellinger Date: Wed, 17 Sep 2014 18:45:17 +0000 (-0700) Subject: iscsi-target: Fix memory corruption in iscsit_logout_post_handler_diffcid X-Git-Tag: v3.2.64~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c0e738c62a1b547590b5c4ce3ccf23cec371284;p=pandora-kernel.git iscsi-target: Fix memory corruption in iscsit_logout_post_handler_diffcid commit b53b0d99d6fbf7d44330395349a895521cfdbc96 upstream. This patch fixes a bug in iscsit_logout_post_handler_diffcid() where a pointer used as storage for list_for_each_entry() was incorrectly being used to determine if no matching entry had been found. This patch changes iscsit_logout_post_handler_diffcid() to key off bool conn_found to determine if the function needs to exit early. Reported-by: Joern Engel Signed-off-by: Nicholas Bellinger Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed