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 'nds32-for-linus-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git]
/
drivers
/
net
/
ethernet
/
broadcom
/
cnic.c
diff --git
a/drivers/net/ethernet/broadcom/cnic.c
b/drivers/net/ethernet/broadcom/cnic.c
index
30273a7
..
4fd829b
100644
(file)
--- a/
drivers/net/ethernet/broadcom/cnic.c
+++ b/
drivers/net/ethernet/broadcom/cnic.c
@@
-660,7
+660,7
@@
static int cnic_init_id_tbl(struct cnic_id_tbl *id_tbl, u32 size, u32 start_id,
id_tbl->max = size;
id_tbl->next = next;
spin_lock_init(&id_tbl->lock);
- id_tbl->table = kcalloc(
DIV_ROUND_UP(size, 32), 4
, GFP_KERNEL);
+ id_tbl->table = kcalloc(
BITS_TO_LONGS(size), sizeof(long)
, GFP_KERNEL);
if (!id_tbl->table)
return -ENOMEM;