]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - crypto/scatterwalk.c
fat: use generic_file_llseek() for directory
[linux-2.6-omap-h63xx.git] / crypto / scatterwalk.c
index 297e19d13c4e6c34dd52688158266a1b502be518..9aeeb52004a5399d0a9b7a3484044b5de1e3083c 100644 (file)
@@ -105,6 +105,9 @@ void scatterwalk_map_and_copy(void *buf, struct scatterlist *sg,
        struct scatter_walk walk;
        unsigned int offset = 0;
 
+       if (!nbytes)
+               return;
+
        for (;;) {
                scatterwalk_start(&walk, sg);