Re: [PATCH] hw: ide: check the pointer before do dma memory unmap

2020-09-22 Thread Li Qiang
Philippe Mathieu-Daudé 于2020年9月22日周二 下午6:46写道: > > On 9/22/20 12:37 PM, Li Qiang wrote: > > Philippe Mathieu-Daudé 于2020年9月22日周二 下午4:19写道: > >> > >> On 9/22/20 3:34 AM, Alexander Bulekov wrote: > >>> On 200815 0020, Li Qiang wrote: > In 'map_page' we need to check the return value of >

Re: [PATCH] hw: ide: check the pointer before do dma memory unmap

2020-09-22 Thread Philippe Mathieu-Daudé
On 9/22/20 12:37 PM, Li Qiang wrote: > Philippe Mathieu-Daudé 于2020年9月22日周二 下午4:19写道: >> >> On 9/22/20 3:34 AM, Alexander Bulekov wrote: >>> On 200815 0020, Li Qiang wrote: In 'map_page' we need to check the return value of 'dma_memory_map' to ensure the we actully maped something.

Re: [PATCH] hw: ide: check the pointer before do dma memory unmap

2020-09-22 Thread Li Qiang
Philippe Mathieu-Daudé 于2020年9月22日周二 下午4:19写道: > > On 9/22/20 3:34 AM, Alexander Bulekov wrote: > > On 200815 0020, Li Qiang wrote: > >> In 'map_page' we need to check the return value of > >> 'dma_memory_map' to ensure the we actully maped something. > >> Otherwise, we will hit an assert in

Re: [PATCH] hw: ide: check the pointer before do dma memory unmap

2020-09-22 Thread Philippe Mathieu-Daudé
On 9/22/20 3:34 AM, Alexander Bulekov wrote: > On 200815 0020, Li Qiang wrote: >> In 'map_page' we need to check the return value of >> 'dma_memory_map' to ensure the we actully maped something. >> Otherwise, we will hit an assert in 'address_space_unmap'. >> This is because we can't find the MR

Re: [PATCH] hw: ide: check the pointer before do dma memory unmap

2020-09-21 Thread Alexander Bulekov
On 200815 0020, Li Qiang wrote: > In 'map_page' we need to check the return value of > 'dma_memory_map' to ensure the we actully maped something. > Otherwise, we will hit an assert in 'address_space_unmap'. > This is because we can't find the MR with the NULL buffer. > This is the LP#1884693: > >

Re: [PATCH] hw: ide: check the pointer before do dma memory unmap

2020-09-21 Thread Li Qiang
Ping!! Li Qiang 于2020年9月15日周二 下午9:38写道: > > ping!! > > Li Qiang 于2020年9月7日周一 上午9:39写道: > > > > Ping! > > > > Li Qiang 于2020年9月1日周二 下午6:34写道: > > > > > > Ping. > > > > > > Li Qiang 于2020年8月15日周六 下午3:21写道: > > > > > > > > In 'map_page' we need to check the return value of > > > >

Re: [PATCH] hw: ide: check the pointer before do dma memory unmap

2020-09-15 Thread Li Qiang
ping!! Li Qiang 于2020年9月7日周一 上午9:39写道: > > Ping! > > Li Qiang 于2020年9月1日周二 下午6:34写道: > > > > Ping. > > > > Li Qiang 于2020年8月15日周六 下午3:21写道: > > > > > > In 'map_page' we need to check the return value of > > > 'dma_memory_map' to ensure the we actully maped something. > > > Otherwise, we will

Re: [PATCH] hw: ide: check the pointer before do dma memory unmap

2020-09-06 Thread Li Qiang
Ping! Li Qiang 于2020年9月1日周二 下午6:34写道: > > Ping. > > Li Qiang 于2020年8月15日周六 下午3:21写道: > > > > In 'map_page' we need to check the return value of > > 'dma_memory_map' to ensure the we actully maped something. > > Otherwise, we will hit an assert in 'address_space_unmap'. > > This is because we

Re: [PATCH] hw: ide: check the pointer before do dma memory unmap

2020-09-01 Thread Li Qiang
Ping. Li Qiang 于2020年8月15日周六 下午3:21写道: > > In 'map_page' we need to check the return value of > 'dma_memory_map' to ensure the we actully maped something. > Otherwise, we will hit an assert in 'address_space_unmap'. > This is because we can't find the MR with the NULL buffer. > This is the

[PATCH] hw: ide: check the pointer before do dma memory unmap

2020-08-15 Thread Li Qiang
In 'map_page' we need to check the return value of 'dma_memory_map' to ensure the we actully maped something. Otherwise, we will hit an assert in 'address_space_unmap'. This is because we can't find the MR with the NULL buffer. This is the LP#1884693: