Re: [PATCH v2] dma-buf: dma-heap: Add a size check for allocation

2022-01-13 Thread Sumit Semwal
Hello Guangming, On Wed, 5 Jan 2022 at 12:05, wrote: > > From: Guangming.Cao > > On Tue, 2022-01-04 at 08:47 +0100, Christian K鰊ig wrote: > > Am 03.01.22 um 19:57 schrieb John Stultz: > > > On Mon, Dec 27, 2021 at 1:52 AM wrote: > > > > From: Guangming > > > > > > > > > > Thanks for submitting

Re: [PATCH v2] dma-buf: dma-heap: Add a size check for allocation

2022-01-04 Thread guangming.cao
From: Guangming.Cao On Tue, 2022-01-04 at 08:47 +0100, Christian K鰊ig wrote: > Am 03.01.22 um 19:57 schrieb John Stultz: > > On Mon, Dec 27, 2021 at 1:52 AM wrote: > > > From: Guangming > > > > > > > Thanks for submitting this! > > > > > Add a size check for allcation since the allocation si

Re: [PATCH v2] dma-buf: dma-heap: Add a size check for allocation

2022-01-04 Thread Guangming . Cao
On Tue, 2022-01-04 at 08:47 +0100, Christian König wrote: > Am 03.01.22 um 19:57 schrieb John Stultz: > > On Mon, Dec 27, 2021 at 1:52 AM wrote: > > > From: Guangming > > > > > > > Thanks for submitting this! > > > > > Add a size check for allcation since the allocation size is > > > > nit: "

Re: [PATCH v2] dma-buf: dma-heap: Add a size check for allocation

2022-01-03 Thread Christian König
Am 03.01.22 um 19:57 schrieb John Stultz: On Mon, Dec 27, 2021 at 1:52 AM wrote: From: Guangming Thanks for submitting this! Add a size check for allcation since the allocation size is nit: "allocation" above. always less than the total DRAM size. In general, it might be good to add mo

Re: [PATCH v2] dma-buf: dma-heap: Add a size check for allocation

2022-01-03 Thread John Stultz
On Mon, Dec 27, 2021 at 1:52 AM wrote: > > From: Guangming > Thanks for submitting this! > Add a size check for allcation since the allocation size is nit: "allocation" above. > always less than the total DRAM size. In general, it might be good to add more context to the commit message to be

[PATCH v2] dma-buf: dma-heap: Add a size check for allocation

2021-12-27 Thread guangming.cao
From: Guangming Add a size check for allcation since the allocation size is always less than the total DRAM size. Signed-off-by: Guangming Signed-off-by: jianjiao zeng --- v2: 1. update size limitation as total_dram page size. 2. update commit message --- drivers/dma-buf/dma-heap.c | 2 ++

[PATCH v2] dma-buf: dma-heap: Add a size check for allocation

2021-12-27 Thread guangming.cao
From: Guangming Add a size check for allcation since the allocation size is always less than the total DRAM size. Signed-off-by: Guangming Signed-off-by: jianjiao zeng --- v2: 1. update size limitation as total_dram page size. 2. update commit message --- drivers/dma-buf/dma-heap.c | 2 ++