mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Make sock_sendpage() use kernel_sendpage()
kernel_sendpage() does the proper default case handling for when the socket doesn't have a native sendpage implementation. Now, arguably this might be something that we could instead solve by just specifying that all protocols should do it themselves at the protocol level, but we really only care about the common protocols. Does anybody really care about sendpage on something like Appletalk? Not likely. Acked-by: David S. Miller <[email protected]> Acked-by: Julien TINNES <[email protected]> Acked-by: Tavis Ormandy <[email protected]> Cc: [email protected] Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a3620f7545
commit
e694958388
1 changed files with 1 additions and 1 deletions
|
|
@ -736,7 +736,7 @@ static ssize_t sock_sendpage(struct file *file, struct page *page,
|
|||
if (more)
|
||||
flags |= MSG_MORE;
|
||||
|
||||
return sock->ops->sendpage(sock, page, offset, size, flags);
|
||||
return kernel_sendpage(sock, page, offset, size, flags);
|
||||
}
|
||||
|
||||
static ssize_t sock_splice_read(struct file *file, loff_t *ppos,
|
||||
|
|
|
|||
Loading…
Reference in a new issue