From: Ricardo Ribalda Date: Wed, 10 Apr 2024 21:54:39 +0000 (+0000) Subject: media: cxd2880: Replaze kmalloc with kzalloc X-Git-Tag: v6.10-rc1~135^2~218 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e5dd099b4e9db772f7342df716abe3d4e94647f;p=thirdparty%2Fkernel%2Flinux.git media: cxd2880: Replaze kmalloc with kzalloc Fix smatch error: drivers/media/spi/cxd2880-spi.c:391 cxd2880_start_feed() warn: Please consider using kzalloc instead of kmalloc Signed-off-by: Ricardo Ribalda Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/spi/cxd2880-spi.c b/drivers/media/spi/cxd2880-spi.c index 6be4e5528879f..65fa7f857fcaf 100644 --- a/drivers/media/spi/cxd2880-spi.c +++ b/drivers/media/spi/cxd2880-spi.c @@ -388,7 +388,7 @@ static int cxd2880_start_feed(struct dvb_demux_feed *feed) if (dvb_spi->feed_count == 0) { dvb_spi->ts_buf = - kmalloc(MAX_TRANS_PKT * 188, + kzalloc(MAX_TRANS_PKT * 188, GFP_KERNEL | GFP_DMA); if (!dvb_spi->ts_buf) { pr_err("ts buffer allocate failed\n");