mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
net: Use standard structures for generic socket address structures.
Use sockaddr_storage{} for generic socket address storage
and ensures proper alignment.
Use sockaddr{} for pointers to omit several casts.
Signed-off-by: YOSHIFUJI Hideaki <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
53b7997fd5
commit
230b183921
5 changed files with 52 additions and 42 deletions
|
|
@ -75,7 +75,7 @@ int get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr __user *umsg)
|
|||
|
||||
/* I've named the args so it is easy to tell whose space the pointers are in. */
|
||||
int verify_compat_iovec(struct msghdr *kern_msg, struct iovec *kern_iov,
|
||||
char *kern_address, int mode)
|
||||
struct sockaddr *kern_address, int mode)
|
||||
{
|
||||
int tot_len;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue