projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regmap: Fix kcalloc parameters swapped
[deliverable/linux.git]
/
drivers
/
base
/
regmap
/
regmap.c
diff --git
a/drivers/base/regmap/regmap.c
b/drivers/base/regmap/regmap.c
index 28e89fd7c28d02399f97b97ad5e42fcd6b95004f..46b2bd742ee6cc5313619f6f2f510e1fa077ef64 100644
(file)
--- a/
drivers/base/regmap/regmap.c
+++ b/
drivers/base/regmap/regmap.c
@@
-709,7
+709,7
@@
int regmap_register_patch(struct regmap *map, const struct reg_default *regs,
}
}
}
}
- map->patch = kcalloc(
sizeof(struct reg_default), num_regs
, GFP_KERNEL);
+ map->patch = kcalloc(
num_regs, sizeof(struct reg_default)
, GFP_KERNEL);
if (map->patch != NULL) {
memcpy(map->patch, regs,
num_regs * sizeof(struct reg_default));
if (map->patch != NULL) {
memcpy(map->patch, regs,
num_regs * sizeof(struct reg_default));
This page took
0.105626 seconds
and
5
git commands to generate.