usb: phy: msm: Remove unused pclk_src_name
[firefly-linux-kernel-4.4.55.git] / kernel / relay.c
index 98833f664fb6853f5bbb3194fb4c465833869624..5a56d3c8dc03a799e5f53169c85c7f33f05727eb 100644 (file)
@@ -227,7 +227,7 @@ static void relay_destroy_buf(struct rchan_buf *buf)
  *     relay_remove_buf - remove a channel buffer
  *     @kref: target kernel reference that contains the relay buffer
  *
- *     Removes the file from the fileystem, which also frees the
+ *     Removes the file from the filesystem, which also frees the
  *     rchan_buf_struct and the channel buffer.  Should only be called from
  *     kref_put().
  */
@@ -1251,7 +1251,7 @@ static ssize_t subbuf_splice_actor(struct file *in,
        subbuf_pages = rbuf->chan->alloc_size >> PAGE_SHIFT;
        pidx = (read_start / PAGE_SIZE) % subbuf_pages;
        poff = read_start & ~PAGE_MASK;
-       nr_pages = min_t(unsigned int, subbuf_pages, pipe->buffers);
+       nr_pages = min_t(unsigned int, subbuf_pages, spd.nr_pages_max);
 
        for (total_len = 0; spd.nr_pages < nr_pages; spd.nr_pages++) {
                unsigned int this_len, this_end, private;