summaryrefslogtreecommitdiffstats
path: root/kernel/power/hibernate.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/power/hibernate.c')
-rw-r--r--kernel/power/hibernate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c
index cd7434e6000d..3c0a5a8170b0 100644
--- a/kernel/power/hibernate.c
+++ b/kernel/power/hibernate.c
@@ -30,6 +30,7 @@
30#include <linux/ctype.h> 30#include <linux/ctype.h>
31#include <linux/genhd.h> 31#include <linux/genhd.h>
32#include <linux/ktime.h> 32#include <linux/ktime.h>
33#include <linux/security.h>
33#include <trace/events/power.h> 34#include <trace/events/power.h>
34 35
35#include "power.h" 36#include "power.h"
@@ -68,7 +69,7 @@ static const struct platform_hibernation_ops *hibernation_ops;
68 69
69bool hibernation_available(void) 70bool hibernation_available(void)
70{ 71{
71 return (nohibernate == 0); 72 return nohibernate == 0 && !security_locked_down(LOCKDOWN_HIBERNATION);
72} 73}
73 74
74/** 75/**