Skip to content

Commit

Permalink
Merge branch 'hwpoison-fixes-2.6.37' into hwpoison
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Kleen committed Oct 22, 2010
2 parents d4429f6 + f7cb8b5 commit df27570
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/ia64/include/asm/siginfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ typedef struct siginfo {
int _imm; /* immediate value for "break" */
unsigned int _flags; /* see below */
unsigned long _isr; /* isr */
short _addr_lsb; /* lsb of faulting address */
} _sigfault;

/* SIGPOLL */
Expand Down
10 changes: 10 additions & 0 deletions fs/signalfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ static int signalfd_copyinfo(struct signalfd_siginfo __user *uinfo,
err |= __put_user((long) kinfo->si_addr, &uinfo->ssi_addr);
#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:
Expand Down
3 changes: 2 additions & 1 deletion include/linux/signalfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ struct signalfd_siginfo {
__u64 ssi_utime;
__u64 ssi_stime;
__u64 ssi_addr;
__u16 ssi_addr_lsb;

/*
* Pad strcture to 128 bytes. Remember to update the
Expand All @@ -43,7 +44,7 @@ struct signalfd_siginfo {
* comes out of a read(2) and we really don't want to have
* a compat on read(2).
*/
__u8 __pad[48];
__u8 __pad[46];
};


Expand Down

0 comments on commit df27570

Please sign in to comment.