aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/scsi_lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index 503f09c2f05f..0f9b6c275417 100644
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -2250,6 +2250,8 @@ void *scsi_kmap_atomic_sg(struct scatterlist *sg, int sg_count,
2250 size_t sg_len = 0, len_complete = 0; 2250 size_t sg_len = 0, len_complete = 0;
2251 struct page *page; 2251 struct page *page;
2252 2252
2253 WARN_ON(!irqs_disabled());
2254
2253 for (i = 0; i < sg_count; i++) { 2255 for (i = 0; i < sg_count; i++) {
2254 len_complete = sg_len; /* Complete sg-entries */ 2256 len_complete = sg_len; /* Complete sg-entries */
2255 sg_len += sg[i].length; 2257 sg_len += sg[i].length;