mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
gru: allocation may fail in quicktest1()
The allocation may fail. Signed-off-by: Roel Kluin <[email protected]> Acked-by: Jack Steiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
f8679af874
commit
9e5f1138d7
1 changed files with 2 additions and 0 deletions
|
|
@ -937,6 +937,8 @@ static int quicktest1(unsigned long arg)
|
|||
|
||||
/* Need 1K cacheline aligned that does not cross page boundary */
|
||||
p = kmalloc(4096, 0);
|
||||
if (p == NULL)
|
||||
return -ENOMEM;
|
||||
mq = ALIGNUP(p, 1024);
|
||||
memset(mes, 0xee, sizeof(mes));
|
||||
dw = mq;
|
||||
|
|
|
|||
Loading…
Reference in a new issue