aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPaolo 'Blaisorblade' Giarrusso <[email protected]>2005-07-14 00:33:34 -0700
committerLinus Torvalds <[email protected]>2005-07-14 09:00:24 -0700
commitbcb01b8a67476e6f748086e626df8424cc27036d (patch)
tree02b2f7931e6d62273dc866863f600ee0b2f945b5 /net/unix/af_unix.c
parent3952db66efee4f22f3c6a0fd02a1e7071556a8d6 (diff)
[PATCH] uml: fix lvalue for gcc4
Russell King <[email protected]> This construct is refused by GCC 4, so here's the (corrected) fix. Thanks to Russell for noticing a stupid mistake I did when first sending this. As he noted, the code is largely suboptimal however it currently works, and will be fixed shortly. Just read the access_ok check on fp which is NULL, or the pointer arithmetic below which should be done with a cast to void*: frame = (struct rt_sigframe __user *) round_down(stack_top - sizeof(struct rt_sigframe), 16) - 8; The code shows clearly that has been taken from arch/x86_64/kernel/signal.c:setup_rt_frame(), maybe in a bit of a hurry. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[email protected]> Cc: Jeff Dike <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions