On Fri, Jul 14, 2017 at 11:01:11AM +0200, Johannes Thumshirn wrote: > On Fri, Jul 14, 2017 at 10:46:03AM +0300, Dan Carpenter wrote: > > 761 case SG_DXFER_FROM_DEV: > > 762 if (hp->dxfer_len < 0) > > ^^^^^^^^^^^^^^^^^ > > Not possible. > > Yup and thanks to: > 647 else > 648 hp->dxfer_direction = (mxsize > 0) ? SG_DXFER_FROM_DEV : SG_DXFER_NONE; > 649 hp->dxfer_len = mxsize; > > I should've noticed that earlier. > Care to send a patch or want me to do? > Could you send the patch? regards, dan carpenter