cifs: fix oops during encryption
[platform/kernel/linux-starfive.git] / fs / cifs / misc.c
index 3e68d82..1cbecd6 100644 (file)
@@ -1136,8 +1136,8 @@ cifs_free_hash(struct shash_desc **sdesc)
  * @len: Where to store the length for this page:
  * @offset: Where to store the offset for this page
  */
-void rqst_page_get_length(struct smb_rqst *rqst, unsigned int page,
-                               unsigned int *len, unsigned int *offset)
+void rqst_page_get_length(const struct smb_rqst *rqst, unsigned int page,
+                         unsigned int *len, unsigned int *offset)
 {
        *len = rqst->rq_pagesz;
        *offset = (page == 0) ? rqst->rq_offset : 0;