Files
linux/drivers
Roland Dreier aaf1aef55f IB/uverbs: Return correct error for invalid PD in register MR
If no matching PD is found in ib_uverbs_reg_mr(), then the function
jumps to err_release without setting the return value ret.  This means
that ret will hold the return value of the call to ib_umem_get() a few
lines earlier; if the function reaches the point where it looks for
the PD, we know that ib_umem_get() must have returned 0, so
ib_uverbs_reg_mr() ends up return 0 for a bad PD ID.  Fix this by
setting ret to -EINVAL before jumping to the exit path when no PD is
found.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-02-22 13:16:51 -08:00
..
2007-02-20 17:10:14 -08:00
2007-02-20 17:10:14 -08:00
2007-02-19 13:34:11 -08:00
2007-02-16 14:00:19 +11:00
2007-02-20 17:10:15 -08:00
2007-02-17 19:07:33 +01:00
2007-02-11 10:51:24 -08:00
2007-02-11 10:51:24 -08:00