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: fixes-for-v3.18-merge-window~98^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ae757d09c45102b347a1bc2867f54ffc1ab8fda;p=pandora-kernel.git iscsi-target: avoid NULL pointer in iscsi_copy_param_list failure 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 Cc: # v3.1+ Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed