Re: [alsa-devel] [PATCH] fix the kernel panic due to wrong use the dev memory API

2018-11-06 Thread Pierre-Louis Bossart
anmin Subject: Re: [alsa-devel] [PATCH] fix the kernel panic due to wrong use the dev memory API On 11/5/18 2:29 AM, He, Bo wrote: skl->dais is allocated with devm_kcalloc, can't free with the krealloc. Memory allocated with devm API is automatically freed on driver detach, Like all other dev

RE: [alsa-devel] [PATCH] fix the kernel panic due to wrong use the dev memory API

2018-11-05 Thread He, Bo
, Guneshwor O ; Periyasamy, SriramX ; Kale, Sanyog R ; Kesapragada, Pardha Saradhi ; kuninori.morimoto...@renesas.com; guruprasadx.pa...@intel.com; Ughreja, Rakesh A ; Prakash, Divya1 ; Diwakar, Praveen ; Zhang, Yanmin Subject: Re: [alsa-devel] [PATCH] fix the kernel panic due to wrong use the

Re: [alsa-devel] [PATCH] fix the kernel panic due to wrong use the dev memory API

2018-11-05 Thread Pierre-Louis Bossart
On 11/5/18 2:29 AM, He, Bo wrote: skl->dais is allocated with devm_kcalloc, can't free with the krealloc. Memory allocated with devm API is automatically freed on driver detach, Like all other devres resources. Refer to drivers/base/devres.c devm_kmalloc for more details. What code are you l