[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0374f7bd-4623-fc4c-8913-894b1e0bb612@users.sourceforge.net>
Date: Sat, 27 Aug 2016 08:20:19 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Julia Lawall <julia.lawall@...6.fr>
Cc: linux-ia64@...r.kernel.org, Fenghua Yu <fenghua.yu@...el.com>,
Tony Luck <tony.luck@...el.com>,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Paolo Bonzini <pbonzini@...hat.com>
Subject: Re: IA64-IRQ: Use kmalloc_array() in sn_irq_lh_init()
>> - 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
Powered by blists - more mailing lists