]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/cifs/misc.c
cifs: replace code with free_rsp_buf()
[karo-tx-linux.git] / fs / cifs / misc.c
index 3b0c62e622da80b55d4e290c94ed1ec564699eed..64997a04ab59020326dc4481791f80d882eda82d 100644 (file)
@@ -226,6 +226,15 @@ cifs_small_buf_release(void *buf_to_free)
        return;
 }
 
+void
+free_rsp_buf(int resp_buftype, void *rsp)
+{
+       if (resp_buftype == CIFS_SMALL_BUFFER)
+               cifs_small_buf_release(rsp);
+       else if (resp_buftype == CIFS_LARGE_BUFFER)
+               cifs_buf_release(rsp);
+}
+
 /* NB: MID can not be set if treeCon not passed in, in that
    case it is responsbility of caller to set the mid */
 void