commit | d10c0858f618c20547d4eda8aee9c3afd91599cf | [log] [tgz] |
---|---|---|
author | Heiko Carstens <heiko.carstens@de.ibm.com> | Tue Oct 13 10:44:07 2009 +0200 |
committer | James Bottomley <James.Bottomley@suse.de> | Thu Oct 22 09:38:42 2009 +0900 |
tree | df1c20b8d735c50dd3847d95c6c1083093748649 | |
parent | 37e6ba00720c2786330dec2a9a5081e9e049422f [diff] |
[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>