diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-02-27 16:23:15 +0000 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-02-27 16:23:21 +0000 |
commit | a173fc693b25216c5c834978f4fafd731fd4ff94 (patch) | |
tree | f75c2fa106217cc3afd1bde6803ca77fe953bbcf /arch/arm/kernel/signal.c | |
parent | d052e161c4067cf21daacb1de960a1e449babfe4 (diff) | |
parent | 759a45185ac0e4dfaf8bbfcb390ec73aca4b7a34 (diff) | |
download | blackbird-op-linux-a173fc693b25216c5c834978f4fafd731fd4ff94.tar.gz blackbird-op-linux-a173fc693b25216c5c834978f4fafd731fd4ff94.zip |
Merge branch 'kirkwood/board' into next/boards
* kirkwood/board: (2 commits)
ARM: kirkwood: convert uart0 to devicetree.
ARM: kirkwood: add dreamplug (fdt) support.
Series sent by email from Jason Cooper <jason@lakedaemon.net>
Update to Linux 3.3-rc3
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/kernel/signal.c')
-rw-r--r-- | arch/arm/kernel/signal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c index 0340224cf73c..9e617bd4a146 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c @@ -227,6 +227,8 @@ static int restore_vfp_context(struct vfp_sigframe __user *frame) if (magic != VFP_MAGIC || size != VFP_STORAGE_SIZE) return -EINVAL; + vfp_flush_hwstate(thread); + /* * Copy the floating point registers. There can be unused * registers see asm/hwcap.h for details. @@ -251,9 +253,6 @@ static int restore_vfp_context(struct vfp_sigframe __user *frame) __get_user_error(h->fpinst, &frame->ufp_exc.fpinst, err); __get_user_error(h->fpinst2, &frame->ufp_exc.fpinst2, err); - if (!err) - vfp_flush_hwstate(thread); - return err ? -EFAULT : 0; } |