android_kernel_samsung_msm8976/net/rose
Florian Westphal 05df3bfbc8 net: rose: restore old recvmsg behavior
[ Upstream commit f81152e35001e91997ec74a7b4e040e6ab0acccf ]

recvmsg handler in net/rose/af_rose.c performs size-check ->msg_namelen.

After commit f3d3342602f8bcbf37d7c46641cb9bca7618eb1c
(net: rework recvmsg handler msg_name and msg_namelen logic), we now
always take the else branch due to namelen being initialized to 0.

Digging in netdev-vger-cvs git repo shows that msg_namelen was
initialized with a fixed-size since at least 1995, so the else branch
was never taken.

Compile tested only.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-01-15 15:28:49 -08:00
..
af_rose.c net: rose: restore old recvmsg behavior 2014-01-15 15:28:49 -08:00
Makefile
rose_dev.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
rose_in.c
rose_link.c
rose_loopback.c
rose_out.c
rose_route.c
rose_subr.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
rose_timer.c
sysctl_net_rose.c net: Convert all sysctl registrations to register_net_sysctl 2012-04-20 21:22:30 -04:00