target: Check LUN numbers in transport_get_lun_for_[cmd,tmr]
authorFubo Chen <fubo.chen@gmail.com>
Sun, 13 Feb 2011 23:13:42 +0000 (15:13 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 22 Jul 2011 09:37:42 +0000 (09:37 +0000)
commitd814495599354924eb4de84727680564d685ce9e
treef03248dfcd68bf297697ab7e110070033aad4dc0
parent02f8c6aee8df3cdc935e9bdd4f2d020306035dbe
target: Check LUN numbers in transport_get_lun_for_[cmd,tmr]

This patch checks the passed 'unpacked_lun' against TRANSPORT_MAX_LUNS_PER_TPG
before reading from struct se_node_acl->device_list[].

Signed-off-by: Fubo Chen <fubo.chen@gmail.com>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c