s2io bogus memset

memset() after kmalloc() on size * 8 would better be on size * 8, not
just size; fixed by switching to kcalloc() - it's more idiomatic anyway.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by Al Viro and committed by Jeff Garzik 3196265e 184231bd

+1 -2
+1 -2
drivers/net/s2io.c
··· 556 } 557 } 558 559 - nic->ufo_in_band_v = kmalloc((sizeof(u64) * size), GFP_KERNEL); 560 if (!nic->ufo_in_band_v) 561 return -ENOMEM; 562 - memset(nic->ufo_in_band_v, 0, size); 563 564 /* Allocation and initialization of RXDs in Rings */ 565 size = 0;
··· 556 } 557 } 558 559 + nic->ufo_in_band_v = kcalloc(size, sizeof(u64), GFP_KERNEL); 560 if (!nic->ufo_in_band_v) 561 return -ENOMEM; 562 563 /* Allocation and initialization of RXDs in Rings */ 564 size = 0;