Hi Maxime Ripard, > -----Original Message----- > From: Biju Das > Sent: Thursday, December 14, 2023 3:24 PM > Subject: RE: [PATCH v15 3/5] drm: renesas: Add RZ/G2L DU Support > . > > > + > > > + vsp->planes = kcalloc(num_planes, sizeof(*vsp->planes), GFP_KERNEL); > > > + if (!vsp->planes) > > > + return -ENOMEM; > > > > drmm_kcalloc or drmm_kmalloc_array > > I get crashes at random places, if I use drmm_kcalloc(). > Not sure it is related to this? There is no crash if I use kcalloc. The random crash is fixed it is due to double free. I forgot to remove kfree in clean up function. Cheers, Biju