On Tue, 2016-07-12 at 11:06 +0000, [email protected] wrote: > From: Wei Yongjun <[email protected]> > > PTR_ERR should be applied before its argument is reassigned, > otherwise the > return value will be set to 0, not error code.
Another good catch. Reviewed-by: Jay Freyensee <[email protected]> > > Signed-off-by: Wei Yongjun <[email protected]> > if (IS_ERR(req->mr)) { > - req->mr = NULL; > ret = PTR_ERR(req->mr); > + req->mr = NULL; > }

