diff options
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r-- | drivers/scsi/sg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 9230402c45af..4968c4ced385 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -1811,7 +1811,7 @@ retry: | |||
1811 | return 0; | 1811 | return 0; |
1812 | out: | 1812 | out: |
1813 | for (i = 0; i < k; i++) | 1813 | for (i = 0; i < k; i++) |
1814 | __free_pages(schp->pages[k], order); | 1814 | __free_pages(schp->pages[i], order); |
1815 | 1815 | ||
1816 | if (--order >= 0) | 1816 | if (--order >= 0) |
1817 | goto retry; | 1817 | goto retry; |