Zhang Shengju <zhangshen...@cmss.chinamobile.com> wrote:
> It is better to propagate PTR_ERR value instead of a hardcoded
> value(-ENOMEM here).
> 
> Signed-off-by: Zhang Shengju <zhangshen...@cmss.chinamobile.com>

...

> -               return -ENOMEM;
> +               return PTR_ERR(ctx-wmem);

Please test your patches before submission.

Thanks,
-- 
Email: Herbert Xu <herb...@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Reply via email to