projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: use get_random_bytes() when possible
[platform/kernel/linux-starfive.git]
/
drivers
/
mtd
/
tests
/
speedtest.c
diff --git
a/drivers/mtd/tests/speedtest.c
b/drivers/mtd/tests/speedtest.c
index
c9ec708
..
075bce3
100644
(file)
--- a/
drivers/mtd/tests/speedtest.c
+++ b/
drivers/mtd/tests/speedtest.c
@@
-223,7
+223,7
@@
static int __init mtd_speedtest_init(void)
if (!iobuf)
goto out;
-
p
random_bytes(iobuf, mtd->erasesize);
+
get_
random_bytes(iobuf, mtd->erasesize);
bbt = kzalloc(ebcnt, GFP_KERNEL);
if (!bbt)