tcmu: free old string on reconfig
authorBryant G. Ly <bryantly@linux.vnet.ibm.com>
Fri, 14 Jul 2017 13:11:04 +0000 (08:11 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 30 Jul 2017 22:23:21 +0000 (15:23 -0700)
commitededd039d1b96035b23592c049efcae53922cfce
tree36eeb68d6d9fcf2c2ac8ea0e8c35c62fc2c4d172
parentc542942cb42186f99b6d715a833c7afad359f48f
tcmu: free old string on reconfig

On initial tcmu_configure_device call the info->name would
have already been allocated and set, so on the second call
make sure to free it first.

Reported-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_user.c