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
/
nand
/
raw
/
nandsim.c
diff --git
a/drivers/mtd/nand/raw/nandsim.c
b/drivers/mtd/nand/raw/nandsim.c
index
d211939
..
6727190
100644
(file)
--- a/
drivers/mtd/nand/raw/nandsim.c
+++ b/
drivers/mtd/nand/raw/nandsim.c
@@
-1393,7
+1393,7
@@
static int ns_do_read_error(struct nandsim *ns, int num)
unsigned int page_no = ns->regs.row;
if (ns_read_error(page_no)) {
-
p
random_bytes(ns->buf.byte, num);
+
get_
random_bytes(ns->buf.byte, num);
NS_WARN("simulating read error in page %u\n", page_no);
return 1;
}