diff options
author | Joern Engel <joern@logfs.org> | 2014-09-02 17:49:54 -0400 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-10-13 15:41:17 +0200 |
commit | de962cfb46d31cd7730a596ff5abbcc740bd9070 (patch) | |
tree | 5c3fcffa5c9827397a964b8de5a9661a4284a5a5 /drivers/target/iscsi/iscsi_target.c | |
parent | f0d84efb3fdcf10a7181cd64fa5fdfb9e7fed3d2 (diff) |
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 <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target.c')
0 files changed, 0 insertions, 0 deletions