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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index 71c5138ddf94..dbf1882cfbac 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -4941,7 +4941,7 @@ static int sgl_map_user_pages(struct st_buffer *STbp,
4941 out_unmap: 4941 out_unmap:
4942 if (res > 0) { 4942 if (res > 0) {
4943 for (j=0; j < res; j++) 4943 for (j=0; j < res; j++)
4944 page_cache_release(pages[j]); 4944 put_page(pages[j]);
4945 res = 0; 4945 res = 0;
4946 } 4946 }
4947 kfree(pages); 4947 kfree(pages);
@@ -4963,7 +4963,7 @@ static int sgl_unmap_user_pages(struct st_buffer *STbp,
4963 /* FIXME: cache flush missing for rw==READ 4963 /* FIXME: cache flush missing for rw==READ
4964 * FIXME: call the correct reference counting function 4964 * FIXME: call the correct reference counting function
4965 */ 4965 */
4966 page_cache_release(page); 4966 put_page(page);
4967 } 4967 }
4968 kfree(STbp->mapped_pages); 4968 kfree(STbp->mapped_pages);
4969 STbp->mapped_pages = NULL; 4969 STbp->mapped_pages = NULL;