Commit 03ad5fa2 authored by Linus Torvalds's avatar Linus Torvalds

Free temporary pipe page after freeing the main buffers.

Duh. Freeing the main buffers can _cause_ the temporary
page to be created.
parent b82f54f7
...@@ -630,13 +630,13 @@ void free_pipe_info(struct inode *inode) ...@@ -630,13 +630,13 @@ void free_pipe_info(struct inode *inode)
struct pipe_inode_info *info = inode->i_pipe; struct pipe_inode_info *info = inode->i_pipe;
inode->i_pipe = NULL; inode->i_pipe = NULL;
if (info->tmp_page)
__free_page(info->tmp_page);
for (i = 0; i < PIPE_BUFFERS; i++) { for (i = 0; i < PIPE_BUFFERS; i++) {
struct pipe_buffer *buf = info->bufs + i; struct pipe_buffer *buf = info->bufs + i;
if (buf->ops) if (buf->ops)
buf->ops->release(info, buf); buf->ops->release(info, buf);
} }
if (info->tmp_page)
__free_page(info->tmp_page);
kfree(info); kfree(info);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment