[SCSI] zfcp: fix kfree handling in zfcp_init_device_setup
commitd10c0858f618c20547d4eda8aee9c3afd91599cf
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 13 Oct 2009 08:44:07 +0000 (13 10:44 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 22 Oct 2009 00:38:42 +0000 (22 09:38 +0900)
treedf1c20b8d735c50dd3847d95c6c1083093748649
parent37e6ba00720c2786330dec2a9a5081e9e049422f
[SCSI] zfcp: fix kfree handling in zfcp_init_device_setup

The pointer that is allocated with kmalloc() is passed to strsep()
which modifies it. Later on the modified pointer value will be passed
to kfree. Save the original pointer and pass that one to kfree
instead.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/s390/scsi/zfcp_aux.c