On Mon, Apr 29, 2024 at 12:13:12PM +0800, Chen Ni wrote: > Add check for the return value of dma_set_max_seg_size() and return > the error if it fails in order to catch the error. Ok. this looks like you're looking t all dma_set_max_seg_size callers? If so mybe just work on removing the return value instead..