aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/clk.py
diff options
context:
space:
mode:
authorMike Christie <[email protected]>2018-07-23 14:07:49 -0500
committerMartin K. Petersen <[email protected]>2018-07-30 23:17:53 -0400
commitc97840c84f5a4362a596a2751e9245a979377a16 (patch)
tree84005dbdc1bd7fd4a7f0d9000e4f621a9e726fbb /scripts/gdb/linux/clk.py
parentdc335a995527fb1ee9ec5649162b22cd1ce728ee (diff)
scsi: tcmu: do not set max_blocks if data_bitmap has been setup
This patch prevents a bug where data_bitmap is allocated in tcmu_configure_device, userspace changes the max_blocks setting, the device is mapped to a LUN, then we try to access the data_bitmap based on the new max_blocks limit which may now be out of range. To prevent this, we just check if data_bitmap has been setup. If it has then we fail the max_blocks update operation. Signed-off-by: Mike Christie <[email protected]> Reviewed-by: Xiubo Li <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/clk.py')
0 files changed, 0 insertions, 0 deletions