]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: optimize variable initialization in do_page_fault
authorJohn David Anglin <dave.anglin@bell.net>
Sat, 5 Oct 2013 14:55:36 +0000 (10:55 -0400)
committerHelge Deller <deller@gmx.de>
Sun, 13 Oct 2013 15:45:40 +0000 (17:45 +0200)
commita15aedbdafac859b324791ca876683ef4325e559
tree6d81d56b2cae2f2b50acd1210222d036fddd22ae
parentdebd03c29ecb1fde3b2ce99ff5cd704d407b0fce
parisc: optimize variable initialization in do_page_fault

The attached change defers the initialization of the variables tsk, mm
and flags until they are needed. As a result, the code won't crash if a
kernel probe is done with a corrupt context and the code will be better
optimized.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/mm/fault.c