target: Fix memory leak on error in target_fabric_make_mappedlun
authorJoern Engel <joern@logfs.org>
Tue, 2 Sep 2014 21:49:57 +0000 (17:49 -0400)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 17 Sep 2014 21:34:50 +0000 (14:34 -0700)
commitda0abaee4793bac4047b3bdfd221fc54850bbf5f
treed4c02b4db2e7fcf8c3d162f4fefd4f5728a7db77
parent8d2135592d2ab5c8d7764a4f534afac64e563691
target: Fix memory leak on error in target_fabric_make_mappedlun

This patch fixes a memory leak on error in target_fabric_make_mappedlun(),
where se_lun_acl memory does not get released on exit.

Found by coverity.

Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_fabric_configfs.c