mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6
Pull cifs fixes from Steve French: "Two small cifs fixes" * 'for-next' of git://git.samba.org/sfrench/cifs-2.6: fs/cifs/cifs_dfs_ref.c: fix potential memory leakage cifs: fix srcip_matches() for ipv6
This commit is contained in:
commit
66e2d3e8c2
@ -226,6 +226,8 @@ compose_mount_options_out:
|
|||||||
compose_mount_options_err:
|
compose_mount_options_err:
|
||||||
kfree(mountdata);
|
kfree(mountdata);
|
||||||
mountdata = ERR_PTR(rc);
|
mountdata = ERR_PTR(rc);
|
||||||
|
kfree(*devname);
|
||||||
|
*devname = NULL;
|
||||||
goto compose_mount_options_out;
|
goto compose_mount_options_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1917,7 +1917,7 @@ srcip_matches(struct sockaddr *srcaddr, struct sockaddr *rhs)
|
|||||||
}
|
}
|
||||||
case AF_INET6: {
|
case AF_INET6: {
|
||||||
struct sockaddr_in6 *saddr6 = (struct sockaddr_in6 *)srcaddr;
|
struct sockaddr_in6 *saddr6 = (struct sockaddr_in6 *)srcaddr;
|
||||||
struct sockaddr_in6 *vaddr6 = (struct sockaddr_in6 *)&rhs;
|
struct sockaddr_in6 *vaddr6 = (struct sockaddr_in6 *)rhs;
|
||||||
return ipv6_addr_equal(&saddr6->sin6_addr, &vaddr6->sin6_addr);
|
return ipv6_addr_equal(&saddr6->sin6_addr, &vaddr6->sin6_addr);
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user