> > -   if ((stream->dev->quirks & UVC_QUIRK_PROBE_DEF) && query == UVC_GET_DEF)
> > -           return -EIO;
> > +   if ((stream->dev->quirks & UVC_QUIRK_PROBE_DEF) &&
> > +                   query == UVC_GET_DEF) {
> > +           ret = -EIO;
> > +           goto out;
> > +   }
> 
> This check can be moved before kmalloc(), removing the need to free memory in 
> case of error.
> 
> Julia, do you want to submit a modified patch or should I do it myself ?

I can do it.  I will send a revised patch shortly.

julia
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to