aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/st.c')
-rw-r--r--drivers/scsi/st.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index 12a36acae0b0..1871b8ae83ae 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -3729,7 +3729,8 @@ static int enlarge_buffer(struct st_buffer * STbuffer, int new_size, int need_dm
3729 b_size = PAGE_SIZE << order; 3729 b_size = PAGE_SIZE << order;
3730 } else { 3730 } else {
3731 for (b_size = PAGE_SIZE, order = 0; 3731 for (b_size = PAGE_SIZE, order = 0;
3732 order < ST_MAX_ORDER && b_size < new_size; 3732 order < ST_MAX_ORDER &&
3733 max_segs * (PAGE_SIZE << order) < new_size;
3733 order++, b_size *= 2) 3734 order++, b_size *= 2)
3734 ; /* empty */ 3735 ; /* empty */
3735 STbuffer->reserved_page_order = order; 3736 STbuffer->reserved_page_order = order;