iscsi-target: Fix NULL dereference on allocation failure
authorDan Carpenter <error27@gmail.com>
Wed, 27 Jul 2011 09:58:17 +0000 (12:58 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 27 Jul 2011 20:28:04 +0000 (20:28 +0000)
commit4a28a3fa8c37193b105807193b3695048f0050a4
tree60c42c12dd1f09a75af0f0a35f98acef4ac7ae0f
parent277c5f27a2c86a9a733c0ec0f6a9b1032dfa3e15
iscsi-target: Fix NULL dereference on allocation failure

This patch fixes a bug in iscsi_target_init_negotiation() where
the "goto out" path dereferences "login" which is NULL upon a
memory allocation failure.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_nego.c