Skip to content

Commit

Permalink
[PATCH] drivers/net/wireless/prism54/oid_mgt.c: kmalloc + memset conv…
Browse files Browse the repository at this point in the history
…ersion to kzalloc

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Acked-by: Luis R. Rodriguez <mcgrof@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Mariusz Kozlowski authored and David S. Miller committed Oct 10, 2007
1 parent 3623060 commit 8951554
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/wireless/prism54/oid_mgt.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,11 @@ mgt_init(islpci_private *priv)
/* Alloc the cache */
for (i = 0; i < OID_NUM_LAST; i++) {
if (isl_oid[i].flags & OID_FLAG_CACHED) {
priv->mib[i] = kmalloc(isl_oid[i].size *
priv->mib[i] = kzalloc(isl_oid[i].size *
(isl_oid[i].range + 1),
GFP_KERNEL);
if (!priv->mib[i])
return -ENOMEM;
memset(priv->mib[i], 0,
isl_oid[i].size * (isl_oid[i].range + 1));
} else
priv->mib[i] = NULL;
}
Expand Down

0 comments on commit 8951554

Please sign in to comment.