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

2018-11-06 Thread Pierre-Louis Bossart
On 11/5/18 6:58 PM, He, Bo wrote: Hi, I submit the patch based on tag v4.19. Please don't post on mailing lists. -Original Message- From: Pierre-Louis Bossart Sent: Tuesday, November 6, 2018 1:02 AM To: He, Bo ; alsa-de...@alsa-project.org; linux-kernel@vger.kernel.org Cc:

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

2018-11-06 Thread Pierre-Louis Bossart
On 11/5/18 6:58 PM, He, Bo wrote: Hi, I submit the patch based on tag v4.19. Please don't post on mailing lists. -Original Message- From: Pierre-Louis Bossart Sent: Tuesday, November 6, 2018 1:02 AM To: He, Bo ; alsa-de...@alsa-project.org; linux-kernel@vger.kernel.org Cc:

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

2018-11-05 Thread He, Bo
Hi, I submit the patch based on tag v4.19. -Original Message- From: Pierre-Louis Bossart Sent: Tuesday, November 6, 2018 1:02 AM To: He, Bo ; alsa-de...@alsa-project.org; linux-kernel@vger.kernel.org Cc: liam.r.girdw...@linux.intel.com; pe...@perex.cz; ti...@suse.com; Singh,

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

2018-11-05 Thread He, Bo
Hi, I submit the patch based on tag v4.19. -Original Message- From: Pierre-Louis Bossart Sent: Tuesday, November 6, 2018 1:02 AM To: He, Bo ; alsa-de...@alsa-project.org; linux-kernel@vger.kernel.org Cc: liam.r.girdw...@linux.intel.com; pe...@perex.cz; ti...@suse.com; Singh,

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

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

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

2018-11-05 Thread kbuild test robot
Hi Bo, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on asoc/for-next] [also build test WARNING on v4.20-rc1 next-20181105] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

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

2018-11-05 Thread kbuild test robot
Hi Bo, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on asoc/for-next] [also build test WARNING on v4.20-rc1 next-20181105] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH] fix the kernel panic due to wrong use the dev memory API

2018-11-05 Thread He, Bo
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. Signed-off-by: he, bo ---

[PATCH] fix the kernel panic due to wrong use the dev memory API

2018-11-05 Thread He, Bo
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. Signed-off-by: he, bo ---