Re: IB/core: Fine-tuning for ib_is_udata_cleared()
From: Yann Droneaud
Date: Mon Aug 22 2016 - 05:47:11 EST
Hi,
Le dimanche 21 aoÃt 2016 Ã 22:15 +0200, SF Markus Elfring a ÃcritÂ:
> >
> > >
> > > >
> > > > Don't introduce a defect in patch 1 and correct
> > > > that introduced defect in patch 2.
> > > Which detail do you not like here?
> >
> > See above.
>
> This feedback is not clearer.
>
It's clear enough: your second patch fixes an issue you introduced in
your first patch by removing the code which made use of the ret
initialization value:
-ÂÂÂÂÂÂÂif (copy_from_user(buf, p, len))
-ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂgoto free;
> I find that the two update steps should work in principle,
> shouldn't they?
>
It would be better to squash them here.
Regards.
--Â
Yann Droneaud
OPTEYA