lkml.org 
[lkml]   [2019]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] lib: scatterlist: Fix to support no mapped sg
Date
Zhou Wang <wangzhou1@hisilicon.com> writes:

> In function sg_split, the second sg_calculate_split will return -EINVAL
> when in_mapped_nents is 0.
>
> Indeed there is no need to do second sg_calculate_split and sg_split_mapped
> when in_mapped_nents is 0, as in_mapped_nents indicates no mapped entry in
> original sgl.
>
> Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
That's right. May I know what is the usecase which led you to this fix ?

Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>

--
Robert

\
 
 \ /
  Last update: 2019-04-19 21:44    [W:0.045 / U:1.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site