Re: [PATCH 1/3] media/ttusb-budget: remove pci_zalloc_coherent abuse

From: Christoph Hellwig
Date: Wed Jan 10 2018 - 03:17:30 EST


On Tue, Jan 09, 2018 at 12:49:26PM -0800, Joe Perches wrote:
> This message doesn't make sense anymore and it might as well
> be deleted.
>
> And it might be better to use kcalloc
>
> ttusb->iso_buffer = kcalloc(FRAMES_PER_ISO_BUF * ISO_BUF_COUNT,
> ISO_FRAME_SIZE, GFP_KERNEL);

Sure.