Eric W. Biederman 30e931d409 [PATCH] i386: Add a temporary to make put_user more type safe
In some code I am developing I had occasion to change the type of a
variable.  This made the value put_user was putting to user space wrong.
But the code continued to build cleanly without errors.

Introducing a temporary fixes this problem and at least with gcc-3.3.5 does
not cause gcc any problems with optimizing out the temporary.  gcc-4.x
using SSA internally ought to be even better at optimizing out temporaries,
so I don't expect a temporary to become a problem.  Especially because in
all correct cases the types on both sides of the assignment to the
temporary are the same.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-23 07:38:04 -08:00
..
2006-03-23 07:38:04 -08:00
2006-03-23 07:38:04 -08:00
2006-03-23 07:38:04 -08:00
2006-01-06 08:33:34 -08:00
2006-01-08 20:13:39 -08:00
2006-03-23 07:38:04 -08:00
2006-01-18 19:20:31 -08:00
2006-01-12 09:08:51 -08:00
2006-01-10 08:01:34 -08:00
2006-01-08 20:14:11 -08:00
2006-02-15 15:32:22 -08:00
2006-03-23 07:38:04 -08:00
2006-02-01 08:53:21 -08:00
2006-01-12 09:08:52 -08:00
2006-03-23 07:38:04 -08:00
2006-03-23 07:38:04 -08:00
2006-03-23 07:38:04 -08:00
2006-03-23 07:38:04 -08:00
2006-02-11 21:41:10 -08:00
2006-01-08 20:14:11 -08:00