diff options
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/socket.c b/net/socket.c index b807f360e02c..0ce12dfc7a71 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -119,10 +119,6 @@ static ssize_t sock_writev(struct file *file, const struct iovec *vector, | |||
119 | static ssize_t sock_sendpage(struct file *file, struct page *page, | 119 | static ssize_t sock_sendpage(struct file *file, struct page *page, |
120 | int offset, size_t size, loff_t *ppos, int more); | 120 | int offset, size_t size, loff_t *ppos, int more); |
121 | 121 | ||
122 | extern ssize_t generic_splice_sendpage(struct inode *inode, struct file *out, | ||
123 | size_t len, unsigned int flags); | ||
124 | |||
125 | |||
126 | /* | 122 | /* |
127 | * Socket files have a set of 'special' operations as well as the generic file ones. These don't appear | 123 | * Socket files have a set of 'special' operations as well as the generic file ones. These don't appear |
128 | * in the operation structures but are done directly via the socketcall() multiplexor. | 124 | * in the operation structures but are done directly via the socketcall() multiplexor. |
@@ -494,6 +490,7 @@ static struct socket *sockfd_lookup_light(int fd, int *err, int *fput_needed) | |||
494 | struct file *file; | 490 | struct file *file; |
495 | struct socket *sock; | 491 | struct socket *sock; |
496 | 492 | ||
493 | *err = -EBADF; | ||
497 | file = fget_light(fd, fput_needed); | 494 | file = fget_light(fd, fput_needed); |
498 | if (file) { | 495 | if (file) { |
499 | sock = sock_from_file(file, err); | 496 | sock = sock_from_file(file, err); |
@@ -2136,7 +2133,7 @@ void socket_seq_show(struct seq_file *seq) | |||
2136 | int cpu; | 2133 | int cpu; |
2137 | int counter = 0; | 2134 | int counter = 0; |
2138 | 2135 | ||
2139 | for_each_cpu(cpu) | 2136 | for_each_possible_cpu(cpu) |
2140 | counter += per_cpu(sockets_in_use, cpu); | 2137 | counter += per_cpu(sockets_in_use, cpu); |
2141 | 2138 | ||
2142 | /* It can be negative, by the way. 8) */ | 2139 | /* It can be negative, by the way. 8) */ |