]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/splice.c
fs/cifs: correctly to anonymous authentication for the LANMAN authentication
[karo-tx-linux.git] / fs / splice.c
index 4cf700d50b4037e6c334b0647cdb81b816f9ef65..0f77e9682857a5b513b67b790af078f0b6fc9b28 100644 (file)
@@ -185,6 +185,9 @@ ssize_t splice_to_pipe(struct pipe_inode_info *pipe,
        unsigned int spd_pages = spd->nr_pages;
        int ret, do_wakeup, page_nr;
 
+       if (!spd_pages)
+               return 0;
+
        ret = 0;
        do_wakeup = 0;
        page_nr = 0;