summaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_ua.h
diff options
context:
space:
mode:
authorNicholas Bellinger2013-02-01 00:05:48 +0100
committerNicholas Bellinger2013-02-01 00:22:53 +0100
commit7a3cf6ca1ab2a2f7161c6dec5a787fc7a5de864e (patch)
tree3d902302f0b9f4b9e76bd8230f88bcd9d8eea686 /drivers/target/target_core_ua.h
parenttarget: Fix regression allowing unconfigured devices to fabric port link (diff)
downloadkernel-qcow2-linux-7a3cf6ca1ab2a2f7161c6dec5a787fc7a5de864e.tar.gz
kernel-qcow2-linux-7a3cf6ca1ab2a2f7161c6dec5a787fc7a5de864e.tar.xz
kernel-qcow2-linux-7a3cf6ca1ab2a2f7161c6dec5a787fc7a5de864e.zip
target: Fix divide by zero bug in fabric_max_sectors for unconfigured devices
This patch fixes a possible divide by zero bug when the fabric_max_sectors device attribute is written and backend se_device failed to be successfully configured -> enabled. Go ahead and use block_size=512 within se_dev_set_fabric_max_sectors() in the event of a target_configure_device() failure case, as no valid dev->dev_attrib.block_size value will have been setup yet. Cc: stable@vger.kernel.org Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_ua.h')
0 files changed, 0 insertions, 0 deletions