Re: IA64-IRQ: Use kmalloc_array() in sn_irq_lh_init()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Julia Lawall <julia.lawall@xxxxxxx>
- Subject: Re: IA64-IRQ: Use kmalloc_array() in sn_irq_lh_init()
- From: SF Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 27 Aug 2016 08:20:19 +0200
- Cc: linux-ia64@xxxxxxxxxxxxxxx, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, LKML <linux-kernel@xxxxxxxxxxxxxxx>, kernel-janitors@xxxxxxxxxxxxxxx, Paolo Bonzini <pbonzini@xxxxxxxxxx>
- In-reply-to: <alpine.DEB.2.10.1608261557130.3645@hadrien>
- References: <349bbfb4-bada-628e-2981-ca2a315299fc@users.sourceforge.net> <2e046b40-1c8e-717f-68b1-534c3125724c@users.sourceforge.net> <alpine.DEB.2.10.1608261557130.3645@hadrien>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2
>> - sn_irq_lh[i] = kmalloc(sizeof(struct list_head), GFP_KERNEL);
>> + sn_irq_lh[i] = kmalloc(*sn_irq_lh[i], GFP_KERNEL);
>
> Did a sizeof get lost here?
Unfortunately, yes.
It is strange that I overlooked such a hiccup yesterday.
Should I start to automate the source code transformation which I imagined here
better with further scripts for the semantic patch language?
Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]