]> Git Repo - linux.git/commit - arch/x86/kernel/traps.c
x86: Remove weird PTR_ERR() in do_debug
authorRusty Russell <[email protected]>
Sun, 16 Jun 2013 04:42:47 +0000 (14:12 +0930)
committerIngo Molnar <[email protected]>
Wed, 19 Jun 2013 13:01:36 +0000 (15:01 +0200)
commit5a802e15308f152247433d87050d1bfbf9613483
tree0507ee1679856c252238f5507d3aa04f2268956d
parent4338774cd41a6abf72aa76585ce2184cea8ff8a2
x86: Remove weird PTR_ERR() in do_debug

62edab905 changed the argument to notify_die() from dr6 to &dr6,
but weirdly, used PTR_ERR() to cast it to a long.  Since dr6 is
on the stack, this is an abuse of PTR_ERR().  Cast to long, as
per kernel standard.

Signed-off-by: Rusty Russell <[email protected]>
Cc: K.Prasad <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/traps.c
This page took 0.055561 seconds and 4 git commands to generate.