summaryrefslogtreecommitdiff
path: root/scripts/dummy-tools/python3
diff options
context:
space:
mode:
authorShao Mingyin <shao.mingyin@zte.com.cn>2026-10-26 19:52:45 +0800
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-10-30 21:23:36 -0400
commitb8d0bb6a8ba0d3878940a914a19336844101867b (patch)
tree67159a11247178d0c9cc2c6c43f8905369e9a150 /scripts/dummy-tools/python3
parentcdf4b87a18cb6a0ee26865cb1b7b5660a491d302 (diff)
scsi: target: tcmu: Fix divide-by-zero in data_pages_per_blk store
tcmu_set_data_pages_per_blk() only validates the upper bound of the value parsed from data_pages_per_blk=. Zero passes that check and is then used as the divisor when computing udev->max_blocks: divide error: 0000 [#1] SMP ... tcmu_set_data_pages_per_blk tcmu_configure_device Reject non-positive values, as the neighbouring max_data_area_mb and cmd_ring_size setters already do. Fixes: 08976cb548d6 ("scsi: target: tcmu: Make data_pages_per_blk changeable via configfs") Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn> Cc: stable@vger.kernel.org Reviewed-by: Bodo Stroesser <bostroesser@gmail.com> Link: https://patch.msgid.link/20261026195245337ktSXy9G17VCcXyw760g9s@zte.com.cn Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'scripts/dummy-tools/python3')
0 files changed, 0 insertions, 0 deletions