From: Joern Engel Date: Tue, 2 Sep 2014 21:49:54 +0000 (-0400) Subject: iscsi-target: avoid NULL pointer in iscsi_copy_param_list failure X-Git-Tag: v3.2.64~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63cb95ba25b2377728536a8114cd05105dd370d4;p=pandora-kernel.git iscsi-target: avoid NULL pointer in iscsi_copy_param_list failure commit 8ae757d09c45102b347a1bc2867f54ffc1ab8fda upstream. In iscsi_copy_param_list() a failed iscsi_param_list memory allocation currently invokes iscsi_release_param_list() to cleanup, and will promptly trigger a NULL pointer dereference. Instead, go ahead and return for the first iscsi_copy_param_list() failure case. Found by coverity. Signed-off-by: Joern Engel Signed-off-by: Nicholas Bellinger Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed