Nicholas Bellinger
ca2656dcce
target: Fix divide by zero bug in fabric_max_sectors for unconfigured devices
...
commit 7a3cf6ca1ab2a2f7161c6dec5a787fc7a5de864e upstream
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.
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-27 09:21:24 -08:00
..
2013-02-03 18:27:05 -06:00
2013-01-27 20:48:59 -08:00
2013-02-14 10:48:19 -08:00
2013-02-27 09:21:10 -08:00
2013-01-17 08:45:44 -08:00
2013-02-27 09:21:11 -08:00
2013-01-11 09:19:03 -08:00
2012-11-07 09:35:53 -08:00
2013-02-14 10:48:00 -08:00
2012-12-17 11:06:52 -08:00
2012-10-02 18:32:35 -07:00
2012-10-02 13:38:27 -07:00
2013-01-27 20:49:02 -08:00
2013-01-17 08:46:22 -08:00
2012-11-22 03:36:15 +00:00
2013-01-27 20:49:03 -08:00
2013-02-03 18:27:04 -06:00
2012-10-23 16:32:18 +09:00
2013-01-17 08:45:55 -08:00
2013-02-03 18:27:05 -06:00
2012-11-17 22:22:24 +01:00
2013-02-27 09:21:19 -08:00
2013-02-03 18:27:05 -06:00
2012-10-24 15:46:27 -07:00
2013-01-17 08:46:22 -08:00
2013-01-27 20:49:02 -08:00
2012-10-06 03:04:41 +09:00
2013-01-27 20:49:02 -08:00
2012-10-19 19:44:06 +01:00
2013-02-14 10:48:00 -08:00
2013-01-11 09:18:47 -08:00
2013-02-03 18:27:04 -06:00
2012-11-06 07:37:10 -08:00
2013-02-14 10:48:13 -08:00
2012-11-11 12:09:43 -08:00
2012-10-07 21:04:56 +09:00
2012-10-06 03:16:12 +09:00
2013-02-14 10:48:01 -08:00
2013-02-14 10:48:01 -08:00
2012-09-26 14:04:09 -07:00
2013-02-14 10:48:01 -08:00
2013-01-27 20:49:01 -08:00
2012-12-06 13:54:35 -05:00
2013-02-11 09:04:43 -08:00
2013-02-27 09:21:10 -08:00
2012-11-20 00:09:26 +01:00
2012-10-17 15:53:03 -05:00
2012-10-09 16:22:18 +09:00
2012-10-09 16:11:46 +09:00
2013-02-17 10:53:13 -08:00
2012-10-19 15:40:18 -07:00
2012-11-15 11:58:24 +01:00
2013-02-03 18:27:05 -06:00
2013-01-11 09:18:16 -08:00
2012-10-13 11:27:59 +09:00
2012-10-06 03:04:56 +09:00
2012-09-22 15:42:38 -04:00
2012-10-10 20:15:24 +09:00
2012-11-16 14:33:04 -08:00
2013-02-14 10:47:59 -08:00
2012-11-29 10:05:09 +02:00
2012-10-07 21:04:56 +09:00
2013-02-17 10:53:12 -08:00
2013-02-27 09:21:08 -08:00
2012-09-21 12:08:56 -07:00
2013-02-03 18:27:05 -06:00
2012-10-15 14:08:48 +09:00
2012-10-28 11:13:54 -07:00
2013-02-27 09:21:08 -08:00
2013-02-27 09:21:24 -08:00
2012-11-03 09:52:55 +08:00
2013-02-27 09:21:07 -08:00
2012-10-09 16:22:19 +09:00
2013-02-27 09:21:06 -08:00
2013-01-27 20:49:00 -08:00
2012-11-28 11:27:01 -05:00
2013-02-27 09:21:09 -08:00
2013-01-11 09:18:18 -08:00
2012-10-01 12:09:59 -07:00
2012-10-07 21:06:10 +09:00
2013-02-27 09:21:09 -08:00
2012-10-01 18:46:13 -07:00
2012-10-16 18:07:12 -07:00