aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2012-08-13 11:28:17 -0400
committerSteven Rostedt <rostedt@goodmis.org>2012-08-13 11:28:17 -0400
commit139803a137dea5e02334692c20f07f19c42afc2e (patch)
tree8c6a149f003aa3c366e44e9bfffb8b3cd6a01fc5 /lib
parent69ebd1210e5fc6535320c9da4c6196b95fa0668c (diff)
parent8524c7870680e93cb3d8f1d3f90f927c3c0686b6 (diff)
Merge tag 'v3.2.27' into v3.2-rt
This is the 3.2.27 stable release Conflicts: kernel/irq/handle.c
Diffstat (limited to 'lib')
-rw-r--r--lib/vsprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 993599e66e5a..d74c317f4b29 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -886,7 +886,8 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
* %pK cannot be used in IRQ context because its test
* for CAP_SYSLOG would be meaningless.
*/
- if (in_irq() || in_serving_softirq() || in_nmi()) {
+ if (kptr_restrict && (in_irq() || in_serving_softirq() ||
+ in_nmi())) {
if (spec.field_width == -1)
spec.field_width = 2 * sizeof(void *);
return string(buf, end, "pK-error", spec);