[kernel] fix possible NULL pointer dereference in sock_sendpage()
[openwrt/svn-archive/archive.git] / target / linux / generic-2.6 / patches-2.6.26 / 996-cve-2009-2692.patch
1 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2692
2
3 --- a/net/socket.c
4 +++ b/net/socket.c
5 @@ -692,7 +692,7 @@ static ssize_t sock_sendpage(struct file
6 if (more)
7 flags |= MSG_MORE;
8
9 - return sock->ops->sendpage(sock, page, offset, size, flags);
10 + return kernel_sendpage(sock, page, offset, size, flags);
11 }
12
13 static ssize_t sock_splice_read(struct file *file, loff_t *ppos,