Jesper Juhl 818810472b net: Fix references to out-of-scope variables in put_cmsg_compat()
In net/compat.c::put_cmsg_compat() we may assign 'data' the address of
either the 'ctv' or 'cts' local variables inside the 'if
(!COMPAT_USE_64BIT_TIME)' branch.

Those variables go out of scope at the end of the 'if' statement, so
when we use 'data' further down in 'copy_to_user(CMSG_COMPAT_DATA(cm),
data, cmlen - sizeof(struct compat_cmsghdr))' there's no telling what
it may be refering to - not good.

Fix the problem by simply giving 'ctv' and 'cts' function scope.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-07-22 17:50:49 -07:00
..
2012-06-04 11:45:11 -04:00
2012-07-10 22:36:17 +02:00
2012-07-22 17:04:15 -07:00
2012-07-19 10:48:00 -07:00
2012-07-22 17:04:15 -07:00
2012-07-20 13:31:21 -07:00
2012-07-19 10:48:00 -07:00
2012-07-16 23:23:52 -07:00
2012-06-15 15:30:15 -07:00
2012-04-15 12:44:40 -04:00
2012-05-17 18:45:20 -04:00
2012-06-27 15:42:24 -07:00
2012-07-22 17:04:15 -07:00
2012-07-18 11:28:46 -07:00
2012-07-16 22:31:34 -07:00
2012-07-20 13:31:21 -07:00
2010-10-15 15:53:27 +02:00