Messages in this thread | | | Date | Wed, 11 Nov 2015 12:43:14 +0300 | From | Dan Carpenter <> | Subject | Re: [PATCH v2 05/12] staging: rtl8188eu: kzalloc replaced by kmalloc |
| |
On Sun, Nov 08, 2015 at 02:11:08PM +0700, Ivan Safonov wrote: > _rtl88e_fill_dummy fills the array elemets with zeros if necessary. >
_rtl88e_fill_dummy() fills the last sizeof(u32) or whatever so the code is aligned but it doesn't fill up to the end of FW_8188E_SIZE. Why do we even allocate that much memory. Why don't we just allocate:
pfwdata = kmalloc(round_up(fwsize, sizeof(u32)), GFP_KERNEL);
regards, dan carpenter
| |