projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d6671a
)
s390/protvirt: support ultravisor without secure storage limit
author
Vasily Gorbik
<gor@linux.ibm.com>
Fri, 11 Sep 2020 09:40:21 +0000
(11:40 +0200)
committer
Vasily Gorbik
<gor@linux.ibm.com>
Wed, 16 Sep 2020 12:08:47 +0000
(14:08 +0200)
Avoid potential crash due to lack of secure storage limit. Check that
max_sec_stor_addr is not 0 before adjusting vmalloc position.
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/uv.c
patch
|
blob
|
history
diff --git
a/arch/s390/kernel/uv.c
b/arch/s390/kernel/uv.c
index
4233245
..
1a166a1
100644
(file)
--- a/
arch/s390/kernel/uv.c
+++ b/
arch/s390/kernel/uv.c
@@
-90,7
+90,8
@@
fail:
void adjust_to_uv_max(unsigned long *vmax)
{
- *vmax = min_t(unsigned long, *vmax, uv_info.max_sec_stor_addr);
+ if (uv_info.max_sec_stor_addr)
+ *vmax = min_t(unsigned long, *vmax, uv_info.max_sec_stor_addr);
}
/*