summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2010-10-22 17:40:07 +0200
committerAndi Kleen <ak@linux.intel.com>2010-10-22 17:40:07 +0200
commitdf27570f43923c246567b074418411c06cf0dce2 (patch)
tree1390735b5232b579f6eb0bb9bb25df019d4ce795 /fs
parentd4429f608abde89e8bc1e24b43cd503feb95c496 (diff)
parentf7cb8b5ffd16edad64ae16ee38c561f98cbcaa3b (diff)
downloadop-kernel-dev-df27570f43923c246567b074418411c06cf0dce2.zip
op-kernel-dev-df27570f43923c246567b074418411c06cf0dce2.tar.gz
Merge branch 'hwpoison-fixes-2.6.37' into hwpoison
Diffstat (limited to 'fs')
-rw-r--r--fs/signalfd.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/signalfd.c b/fs/signalfd.c
index 1c5a6ad..bdd4496 100644
--- a/fs/signalfd.c
+++ b/fs/signalfd.c
@@ -99,6 +99,16 @@ static int signalfd_copyinfo(struct signalfd_siginfo __user *uinfo,
#ifdef __ARCH_SI_TRAPNO
err |= __put_user(kinfo->si_trapno, &uinfo->ssi_trapno);
#endif
+#ifdef BUS_MCEERR_AO
+ /*
+ * Other callers might not initialize the si_lsb field,
+ * so check explicitly for the right codes here.
+ */
+ if (kinfo->si_code == BUS_MCEERR_AR ||
+ kinfo->si_code == BUS_MCEERR_AO)
+ err |= __put_user((short) kinfo->si_addr_lsb,
+ &uinfo->ssi_addr_lsb);
+#endif
break;
case __SI_CHLD:
err |= __put_user(kinfo->si_pid, &uinfo->ssi_pid);
OpenPOWER on IntegriCloud