On Wed, 2017-07-12 at 15:51 +0800, lixiubo@xxxxxxxxxxxxxxxxxxxx wrote: > From: Xiubo Li <lixiubo@xxxxxxxxxxxxxxxxxxxx> > > For most case the sg->length equals to PAGE_SIZE, so this bug won't > be triggered. Otherwise this will crash the kernel, for example when > all segments' sg->length equal to 1K. > > Signed-off-by: Xiubo Li <lixiubo@xxxxxxxxxxxxxxxxxxxx> > --- > drivers/target/target_core_user.c | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) > Applied to target-pending/master. Thankx Xiubo + MNC.