author: Kees Cook <keescook@chromium.org> 2018-06-12 14:03:40 -0700
committer: Kees Cook <keescook@chromium.org> 2018-06-12 16:19:22 -0700
commit: 6396bb221514d2876fd6dc0aa2a1f240d99b37bb
parent: 6da2ec56059c3c7a7e5f729e6349e74ace1e5c57
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/drivers/pcmcia/pd6729.c b/drivers/pcmcia/pd6729.c
index 959ae3e65ef8..f0af9985ca09 100644
--- a/drivers/pcmcia/pd6729.c
+++ b/drivers/pcmcia/pd6729.c
@@ -628,7 +628,7 @@ static int pd6729_pci_probe(struct pci_dev *dev,
char configbyte;
struct pd6729_socket *socket;
- socket = kzalloc(sizeof(struct pd6729_socket) * MAX_SOCKETS,
+ socket = kcalloc(MAX_SOCKETS, sizeof(struct pd6729_socket),
GFP_KERNEL);
if (!socket) {
dev_warn(&dev->dev, "failed to kzalloc socket.\n");