]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
iscsi-target: use kstrdup() for iscsi_param
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 29 Nov 2012 19:29:01 +0000 (20:29 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 8 Dec 2012 01:55:44 +0000 (17:55 -0800)
commited72a4d52add345595f09b360d6ac5f20428d361
tree6ad4f0a9313fc390b7ec6799560b2a0d10207e1a
parent778229af95977a4aca8656143d457401c2bb8f96
iscsi-target: use kstrdup() for iscsi_param

The kmalloc() + strlen() + memcpy() block is what kstrdup() does as
well.  While here I also removed the "to NULL assignment" of pointers
which are fed to kfree or thrown away anyway.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_parameters.c