projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'locking-urgent-2020-11-22' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git]
/
drivers
/
target
/
target_core_rd.c
diff --git
a/drivers/target/target_core_rd.c
b/drivers/target/target_core_rd.c
index
408bd97
..
bf936bb
100644
(file)
--- a/
drivers/target/target_core_rd.c
+++ b/
drivers/target/target_core_rd.c
@@
-131,7
+131,7
@@
static int rd_allocate_sgl_table(struct rd_dev *rd_dev, struct rd_dev_sg_table *
if (sg_per_table < total_sg_needed)
chain_entry = 1;
- sg = k
calloc
(sg_per_table + chain_entry, sizeof(*sg),
+ sg = k
malloc_array
(sg_per_table + chain_entry, sizeof(*sg),
GFP_KERNEL);
if (!sg)
return -ENOMEM;