summaryrefslogtreecommitdiffstats
path: root/drivers/firewire/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire/net.c')
-rw-r--r--drivers/firewire/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c
index 60e75e6d9104..82ba110d9d1a 100644
--- a/drivers/firewire/net.c
+++ b/drivers/firewire/net.c
@@ -1121,7 +1121,7 @@ static int fwnet_broadcast_start(struct fwnet_device *dev)
1121 max_receive = 1U << (dev->card->max_receive + 1); 1121 max_receive = 1U << (dev->card->max_receive + 1);
1122 num_packets = (FWNET_ISO_PAGE_COUNT * PAGE_SIZE) / max_receive; 1122 num_packets = (FWNET_ISO_PAGE_COUNT * PAGE_SIZE) / max_receive;
1123 1123
1124 ptrptr = kmalloc(sizeof(void *) * num_packets, GFP_KERNEL); 1124 ptrptr = kmalloc_array(num_packets, sizeof(void *), GFP_KERNEL);
1125 if (!ptrptr) { 1125 if (!ptrptr) {
1126 retval = -ENOMEM; 1126 retval = -ENOMEM;
1127 goto failed; 1127 goto failed;