From: Nicholas Bellinger Date: Tue, 19 Feb 2013 02:31:37 +0000 (-0800) Subject: target: Add missing mapped_lun bounds checking during make_mappedlun setup X-Git-Tag: v3.9-rc1~71^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbbf8555a986ed31e54f006b6cc637ea4ff1425b;p=pandora-kernel.git target: Add missing mapped_lun bounds checking during make_mappedlun setup This patch adds missing bounds checking for the configfs provided mapped_lun value during target_fabric_make_mappedlun() setup ahead of se_lun_acl initialization. This addresses a potential OOPs when using a mapped_lun value that exceeds the hardcoded TRANSPORT_MAX_LUNS_PER_TPG-1 value within se_node_acl->device_list[]. Reported-by: Jan Engelhardt Cc: Jan Engelhardt Cc: Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed