]> www.infradead.org Git - users/jedix/linux-maple.git/commit
oprofile, x86: Fix wrapping bug in op_x86_get_ctrl()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 Oct 2012 07:18:35 +0000 (10:18 +0300)
committerGuangyu Sun <guangyu.sun@oracle.com>
Tue, 6 Nov 2012 00:28:21 +0000 (16:28 -0800)
commit3f199a25f92e3ed5bdc593da8ad3d0e79ff84896
tree73e99d1bc44917fd6a3152486f612f179c3a149b
parent360b1851d2f0f11d9c4e3cbe4d34a3eea381ed6a
oprofile, x86: Fix wrapping bug in op_x86_get_ctrl()

commit 44009105081b51417f311f4c3be0061870b6b8ed upstream.

The "event" variable is a u16 so the shift will always wrap to zero
making the line a no-op.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
arch/x86/oprofile/nmi_int.c