target: fix use after free in target_report_luns
authorJörn Engel <joern@logfs.org>
Wed, 15 Feb 2012 21:51:32 +0000 (16:51 -0500)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 25 Feb 2012 22:37:50 +0000 (14:37 -0800)
commit382436f8804fe1cb20b9a2a811a10eb2d8554721
tree7eb91d8121092133c6b3a58928c54253b1d224b4
parent6cf3fa6918baab0c447f1206f1cef9166ad04864
target: fix use after free in target_report_luns

Fix possible NULL pointer dereference in target_report_luns failure path.

Signed-off-by: Joern Engel <joern@logfs.org>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c